BUG: MultiIndex levels are not preserved for empty DataFrames after to_parquet
roundtrip
#59385
Open
3 tasks done
Labels
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
When I create an empty
DataFrame
with anMultiIndex
that has one or more empty levels, the non-empty levels are not preserved after saving the DataFrame to parquet and re-loading it.Expected Behavior
I expect the index levels to stay the same after reading from parquet
Installed Versions
The text was updated successfully, but these errors were encountered: