BUG: testing.assert_frame_equal
unhelpful error message for string[pyarrow]
#54190
Labels
Arrow
pyarrow functionality
Bug
IO Parquet
parquet, feather
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
results in the error message
Issue Description
The problem is that
have the same string representation
Expected Behavior
StringDtype("pyarrow")
andArrowDtype("string")
need differentrepr
testing.assert_frame_equal
should consider printing not justrepr(dtype)
, but alsorepr(type(dtype))
.pd.read_parquet
should round trip both index and column dtypes #Additional context
As per https://pandas.pydata.org/docs/user_guide/pyarrow.html
Installed Versions
The text was updated successfully, but these errors were encountered: