Skip to content

BUG: Error writing an empty DataFrame to an ods file #45793

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

Closed
3 tasks done
rhshadrach opened this issue Feb 3, 2022 · 0 comments · Fixed by #45794
Closed
3 tasks done

BUG: Error writing an empty DataFrame to an ods file #45793

rhshadrach opened this issue Feb 3, 2022 · 0 comments · Fixed by #45794
Labels
Bug IO Excel read_excel, to_excel
Milestone

Comments

@rhshadrach
Copy link
Member

Pandas version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pandas.

  • I have confirmed this bug exists on the main branch of pandas.

Reproducible Example

with pd.ExcelWriter('test.ods') as writer:
    DataFrame().to_excel(writer)

Issue Description

Raises ValueError: max() arg is an empty sequence

Expected Behavior

Write an empty sheet

Installed Versions

Replace this line with the output of pd.show_versions()

@rhshadrach rhshadrach added Bug IO Excel read_excel, to_excel labels Feb 3, 2022
@rhshadrach rhshadrach added this to the 1.5 milestone Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug IO Excel read_excel, to_excel
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant