-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
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
ENH: adding a filter (and bold) to header when writing to excel #61194
Comments
Thanks for the request. Assuming all of our current engines can support this, this seems like a common desire; I'm positive here. I would recommend the argument:
allowing the user to control which index/columns get filters. However, we'd need to workout how this interacts with other arguments, namely |
take |
1 similar comment
take |
@rhshadrach @janeq6 The most common usage, I think, is the bold format with what is called auto-filter on excel |
In excel, since a filter can only be applied over a continuous range of cells, I think the argument
would be more optimal as it's more in line with how it's applied in excel and makes input validation far easier. As for merge cells, Excel isn't really designed to filter columns with merged cells. I would recommend to not apply the autofilter if there are any merged cells if the argument is simply True, but when provided a range, to check if there any merged cells in that range of columns, if no, then apply it to that range, otherwise don't apply it and raise a warning. |
Feature Type
Adding new functionality to pandas
Changing existing functionality in pandas
Removing existing functionality in pandas
Problem Description
Hello,
One of the things I always do when opening an excel file is adding filter on header. Just like that
Feature Description
I'm not exactly sure
Alternative Solutions
I see that as an option to to_excel function or to class ExcelWriter, not sure of what would be the best.
Additional Context
No response
The text was updated successfully, but these errors were encountered: