BUG: Error when exporting empty DataFrame with MultiIndex on both axes to xlsx file #57696
Closed
3 tasks done
Labels
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 given example tries to write an empty dataframe with multiindex rows and columns to an Excel xlsx file.
Observed exception:
This bug is almost identical to #46873 but for the case with multiindex columns.
Expected Behavior
Excel file written. No exception.
Installed Versions
The text was updated successfully, but these errors were encountered: