assert_series_equal
with categorical_as_str
does not work on nested Categoricals
#16196
Closed
2 tasks done
Labels
A-dtype-categorical
Area: categorical data type
A-dtype-struct
Area: struct data type
accepted
Ready for implementation
bug
Something isn't working
P-low
Priority: low
python
Related to Python Polars
Checks
Reproducible example
Log output
Issue description
With
categorical_as_str=True
, categoricals should be treated as their string representation. This is currently not the case for nested types.The offending code is here:
polars/py-polars/polars/testing/asserts/series.py
Lines 127 to 132 in 9bfa30c
Clearly this will not work for nested types.
Expected behavior
Assertion should pass
Installed versions
main
The text was updated successfully, but these errors were encountered: