-
-
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
DOC: fix docstring validation errors for pandas.io.formats.style.Styler #59607
DOC: fix docstring validation errors for pandas.io.formats.style.Styler #59607
Conversation
pandas/io/formats/style.py
Outdated
@@ -553,11 +576,11 @@ def to_excel( | |||
startcol: int = 0, | |||
engine: str | None = None, | |||
merge_cells: ExcelWriterMergeCells = True, | |||
encoding: str | None = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ordering of these parameters should not change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function's parameters are out of order when used in the base to_excel
template docstring (since var extra_parameters
is substituted at its end). I'll roll back the current change and instead add optional params to the base to_excel
template docstring to accommodate encoding
and verbose
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolution for requested change is in 175dd36.
….style.Styler.to_excel
6eb9be1
to
175dd36
Compare
Thanks @hlakams |
Addresses #59606.
Fixes:
pandas/ci/code_checks.sh
Lines 308 to 335 in 360597c
Note: order of args for
pandas.io.formats.style.Styler.to_excel
shifted around in order to maintain compatibility with shared doc template handler.