-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH: Raise error writing excel file with a MultiIndexed DataFrame #9794 #9889
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
Conversation
@@ -52,6 +52,8 @@ Enhancements | |||
|
|||
- Allow timedelta string conversion when leading zero is missing from time definition, ie `0:00:00` vs `00:00:00`. (:issue:`9570`) | |||
|
|||
- Trying to write an excel file now raises error if the DataFrame has a MultiIndex instead of writing a broken Excel file. (:issue:`9794`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
raises a NotImplementedError
can you add a tests that validates this. otherwise looks good. |
Actually I just saw there is a some tests that test writing excel with multiindex https://github.com/pydata/pandas/blob/master/pandas/io/tests/test_excel.py#L895 Referencing: ill figure out what the difference is |
bbe6539
to
fed64b3
Compare
I added two tests that make sure writing MultiIndex index works and MultiIndex columns raise. |
fed64b3
to
3d515dd
Compare
3d515dd
to
a97113c
Compare
fixed the backticks in whats new and modified the test for multicolumn/index writing to assert fails only on multicolumn writes |
ENH: Raise error writing excel file with a MultiIndexed DataFrame #9794
@hsperr thanks! |
Raise a NotImplementedError until fixed.
closes #9794