BUG: DataFrame.dtypes
doesn't include backend for string
columns
#50099
Labels
Bug
DataFrame
DataFrame data structure
Output-Formatting
__repr__ of pandas objects, to_string
Strings
String extension data type and string data
Milestone
Pandas version checks
I have checked that this issue has not already been reported.
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
The output of
DataFrame.dtypes
doesn't include[pyarrow]
or[python]
when using string extension types. This makes it unclear whatdtypes
are in a DataFrame. It's also not consistent withSeries.dtypes
, which includes[pyarrow]
/[python]
information, and otherpyarrow
-backeddtypes
likeint64[pyarrow]
The above code snippet outputs
Expected Behavior
I'd expect
string[pyarrow]
andstring[python]
to be in output ofDataFrame.dtypes
Installed Versions
The text was updated successfully, but these errors were encountered: