-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
ENH: Support Multi-Index for columns in parquet format #34777
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Simply removing the code
this example then works, although I'm not sure what the limitations are. I've tested a couple of examples, such as |
The check needs to be updated to handle MultiIndexes. Something like if df.index.nlevels > 1:
if not all(x.inferred_type in {"string", "empty"} for x in df.index.levels):
raise ValueError(...) |
Hello! I could make an attempt on updating the check to handle MultiIndexes for parquet format, if that's okay. :) |
That'd be great, thanks. |
1. Update check to handle MultiIndex columns for parquet format 2. Edit whatsnew entry. 3. Add test for writing MultiIndex columns with string column names
1. Include issue number as a comment on added test
1. Add tests for writing Indexes and MultiIndexes for columns 2. Edit message for check to handle MultiIndex columns for parquet 3. Edit whatsnew entry to move entry to other enhancements
1. Fix PEP8 issue for error message in check for MultiIndex columns
add whatsnew entry: enhancements in 1.2
Is your feature request related to a problem?
I would like to save DataFrame with Multi-Index used for columns into parquet format.
This is currently not possible.
Describe alternatives you've considered
To do so with actual state of library, a piece of code has been shared on SO.
I will use it for now.
Thanks for your help!
Bests,
The text was updated successfully, but these errors were encountered: