write_parquet
does not preserve enum categories for empty data frames
#20083
Labels
accepted
Ready for implementation
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
For an empty data frame, writing to and reading from a parquet file turns enums into categoricals.
The same does not happen for non-empty data frames:
Log output
No response
Issue description
See above.
Expected behavior
The expected behavior would be to preserve the enum information even when empty data frames are written to parquet.
Installed versions
The text was updated successfully, but these errors were encountered: