Skip to content

Conversation

@tomas-cc
Copy link

@tomas-cc tomas-cc commented Dec 2, 2025

  • closes #xxxx (Replace xxxx with the GitHub issue number)
  • Tests added and passed if fixing a bug or adding a new feature
  • All code checks passed.
  • Added type annotations to new arguments/methods/functions.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.
  • If I used AI to develop this pull request, I prompted it to follow AGENTS.md.

@tomas-cc tomas-cc changed the title Clarify to_excel() documentation regarding overwrite behavior in default write mode Clarify to_excel() documentation regarding overwrite behavior Dec 2, 2025
@mroeschke
Copy link
Member

Is this associated with an open issue?

@tomas-cc
Copy link
Author

tomas-cc commented Dec 8, 2025

Hey,
The original wording in the docs was a bit misleading and made me think that Excel files couldn’t be appended. Because of that, I spent time working on unnecessary workarounds.
Later I noticed docs on [ExcelWriter](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.ExcelWriter.html) says that It can be opened in append mode and has if_sheet_exists handling. And it works after trying that out.
So I though update the docs might prevent someone else from wasting their time.

I can open an issue if its needed and the change looks good.

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

Successfully merging this pull request may close these issues.

2 participants