-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
engine xlsxwriter fails for np.inf #6782
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
do |
cc @jmcnamara |
nans are fine On Thu, Apr 3, 2014 at 7:19 PM, jreback [email protected] wrote:
Arthur Gerigk Rocket Internet GmbH | Johannisstraße 20 | 10117 Berlin | Deutschland Geschäftsführer: Dr. Johannes Bruder, Arnt Jeschke, Alexander Kudlich |
I don't think NAN/INF are supported by Excel so I am curious to see what OpenPyXL is doing in this case. Can you post a small example that demonstrates the issue and I'll look into it. |
to_excel has a parameter "na_rep" which defaults to the empty string. On Thu, Apr 3, 2014 at 7:39 PM, John McNamara [email protected]:
Arthur Gerigk Rocket Internet GmbH | Johannisstraße 20 | 10117 Berlin | Deutschland Geschäftsführer: Dr. Johannes Bruder, Arnt Jeschke, Alexander Kudlich |
NA is only supported in Excel as a formula or as the result of a formula. Not as a value. If you post an example I'll have a look at it. |
import numpy as np df = pd.DataFrame([(1, np.inf), (2, 3)]) since there is a parameter np_rep I think it has to work ;-) On Thu, Apr 3, 2014 at 8:14 PM, John McNamara [email protected]:
Arthur Gerigk Rocket Internet GmbH | Johannisstraße 20 | 10117 Berlin | Deutschland Geschäftsführer: Dr. Johannes Bruder, Arnt Jeschke, Alexander Kudlich |
Let's follow the model of Side note - I can't open up the openpyxl file after it's written - so I'm not sure if openpyxl is doing the right thing. |
this works for openpyxl but it fails for xlsxwriter
TypeError("NAN/INF not supported in write_number()")
The text was updated successfully, but these errors were encountered: