Skip to content
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

Pandas dataframes with NaN values #3

Closed
eliasmistler opened this issue Jul 23, 2019 · 2 comments
Closed

Pandas dataframes with NaN values #3

eliasmistler opened this issue Jul 23, 2019 · 2 comments

Comments

@eliasmistler
Copy link

Issue Description

The export function fails when there are pandas dataframes with NaN values.

The following message is displayed:

nbconvert failed: NAN/INF not supported in write_number() without 'nan_inf_to_errors' Workbook() option

Reproducing

To reproduce the issue, simply create a notebook with the following cell and try to export:

pd.DataFrame([[pd.np.nan]])
@danlester
Copy link
Member

Thanks a lot for reporting. I should get a chance to look at this in the next couple of days.

@danlester
Copy link
Member

I've just released version 0.1.3 to deal with nans better - it should show as NA() in Excel now. I really appreciate your feedback - thanks again for letting me know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants