Skip to content

CLN: remove redundant latex options #50871

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

Merged
merged 10 commits into from
Feb 9, 2023
Merged

Conversation

attack68
Copy link
Contributor

after #48970

@mroeschke mroeschke added the Styler conditional formatting using DataFrame.style label Jan 19, 2023
@attack68 attack68 added the IO LaTeX to_latex label Jan 20, 2023
@attack68 attack68 marked this pull request as draft January 20, 2023 17:35
@attack68 attack68 marked this pull request as ready for review January 20, 2023 18:22
@attack68
Copy link
Contributor Author

There is one test here that checks the default for escape is True. Since that has specifically changed here, I wonder if that test should be removed or changed to test that the default for escape is now False.

@attack68
Copy link
Contributor Author

test failure seems unrelated, all other builds seem to pass.

@attack68
Copy link
Contributor Author

would be good if this can be reviewed for 2.0. to supplement the 2.0 to_latex changes.

@attack68 attack68 added this to the 2.0 milestone Jan 24, 2023
multicolumn_format : str, default 'l'
The alignment for multicolumns, similar to `column_format`
The default will be read from the config module.
The default will be read from the config module, and is set as the option
``styler.latex.multicol_align``.
multirow : bool, default False
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the arguments that changed defaults, I think the default here needs to change.

Could you also add a ..versionchange:: 2.0.0 directive in the body describing that the default changed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will do good spot,

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done and test passing. Few failures in CIArm are unrelated.

Co-authored-by: Matthew Roeschke <[email protected]>
`"longtable"`.

.. versionchanged:: 2.0.0
The pandas option affecting this argument has changed.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For these notes could we state what the new option is i.e. ...this argument has changed to <new option>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The main part of the parameter doc string contains the names of the pandas option that are used. Not sure we need to explicitly state it again in the versionchanged only a couple lines below?

Did add the default values though.


.. versionchanged:: 2.0.0
The pandas option affecting this argument has changed, as has the
default value.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here i.e. the default value has changed from <old> to <new>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have added the new default values.

@mroeschke mroeschke merged commit 9bbb1c0 into pandas-dev:main Feb 9, 2023
@mroeschke
Copy link
Member

Thanks @attack68

@attack68 attack68 deleted the latex_options branch February 15, 2023 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO LaTeX to_latex Styler conditional formatting using DataFrame.style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants