Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more
pd.api.types.pandas_dtype behavior is inconsistent when called for the str string[pyarrow] which returns type string instead of type string[pyarrow], compared to other types which returns type <type>[pyarrow].
Expected Behavior
pd.api.types.pandas_dtype to return type string[pyarrow] for input str string[pyarrow]
Pandas version checks
[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest version of pandas.
[ ] I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
pd.api.types.pandas_dtype
behavior is inconsistent when called for the strstring[pyarrow]
which returns typestring
instead of typestring[pyarrow]
, compared to other types which returns type<type>[pyarrow]
.Expected Behavior
pd.api.types.pandas_dtype
to return typestring[pyarrow]
for input strstring[pyarrow]
Installed Versions