-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
REF: Proposal: change DataFrame.to_excel
to output unformatted excel file
#54154
Comments
Taking this since I'm already doing the work for this PR |
+1 |
1 similar comment
+1 |
+1 on a deprecation of to_excel from producing a formatted excel file |
@mroeschke - would you be opposed to doing this in 3.0 without deprecation? I think to deprecate this, there would need to be a way to silence the warning - e.g. an argument or option added in and then that deprecated in 3.0. Since this can't break any workflow (it's just styling), that doesn't seem worth the effort to me. |
Sure a 3.0 break sounds good too |
+1 |
I would suggets we have enough support here to progress with at least the PR, @rmhowe425 |
@attack68 Excellent! I'll get started on implementation |
Feature Type
Adding new functionality to pandas
Changing existing functionality in pandas
Removing existing functionality in pandas
Problem Description
TLDR;
Please indicate with a +1 if you are happy for the default
DataFrame.to_excel
to be changed to output an excel file without any bold or bordered style attached.Description
The current action of
DataFrame.to_excel
is to produce an excel file with default bold and bordered styles for column and row headers:A number of issues are attempting to address this:
In a recent PR (#53973) it is proposed to remove the ability to format excel file styles with
DataFrame.to_excel
and instead document how users can use theStyler.to_excel
to create styles excel files.This has a number of advantages:
Styler.to_excel
(which usesDataFrame.to_excel
) since an unstyledStyler
wont produce this bold bordering by default.@pandas-dev appreciate input to gain some form of concensus to proceed.
@WillAyd @rhshadrach @mroeschke
Feature Description
Alternative Solutions
Additional Context
The text was updated successfully, but these errors were encountered: