Skip to content

Conversation

@antznette1
Copy link

@antznette1 antznette1 commented Oct 26, 2025

@rhshadrach

  • Added autofilter parameter to Excel export functionality
  • Implemented autofilter support for both xlsxwriter and openpyxl engines
  • Added comprehensive tests for both engines
  • Handles edge cases like empty dataframes

Usage

Basic usage

df.to_excel("output.xlsx", autofilter=True)

With ExcelWriter

with pd.ExcelWriter("output.xlsx") as writer: df.to_excel(writer, autofilter=True)

Backward Compatibility:

  • Fully backward compatible
  • Default is autofilter=False to maintain existing behavior
  • No changes to existing functionality

Related Issues

Part of the improvements from #62670

@rhshadrach
Copy link
Member

It seems like this is just about the entire diff from #62670, not just the changes regarding the autofilter.

@antznette1 antznette1 closed this Oct 30, 2025
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