-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
dataframe to_excel issue with openpyxl > 3.0.1 #30203
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
Is this likely an issue pandas or with openpyxl? |
Thanks @TomAugspurger |
This is an openpyxl issue, xref #29862 |
Looks like that was fixed on openpyxl 3.0 branch yesterday - @mhooreman any chance you can install that version of openpyxl and see if it fixes the issue? |
@WillAyd, installed pip's pandas and openpyxl from https://bitbucket.org/openpyxl/openpyxl/branch/3.0 on a dedicated venv. It works. Thanks a lot. Remark: in the bitbucket, openpyxl was still flagged 3.0.2 |
Hello,
When exporting a data frame to excel on a python setup using openpyxl 3.0.2, we have the error
TypeError: got invalid input value of type <class 'xml.etree.ElementTree.Element'>, expected string or Element
.Rolling back to 3.0.1 solves the issue.
Thanks
Code Sample
With openpyxl 3.0.2
With openpyxl 3.0.1
Output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: