-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH: latex styler bool pandas options #43670
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
Conversation
attack68
commented
Sep 20, 2021
- adds the last remaining options for Opinion requested: Pandas Options for Styler #41395 for the existing args in Styler.to_latex.
can we add only the most important options here, e.g. it is perfectly fine to have keyword args that are not set by a global option. the namespace is getting cluttered. |
sure, do you want to review some of the other ones that went in, and, to be consistent in terms of importance, remove some others also? Always easier to add something back than to remove it after a release. |
yeah i think let's keep the options to the current exposed ones in prior versions e.g. don't add non-super-common options (i know vague) |
# Conflicts: # pandas/io/formats/style.py
I removed |
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.
looks fine, doc comment, ping on green.
Set to `True` to add \\toprule, \\midrule and \\bottomrule from the | ||
{booktabs} LaTeX package. | ||
Defaults to ``pandas.options.styler.latex.hrules``, which is `False`. |
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.
can you add a versionchanged 1.4 here
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.
done
sparse_columns : bool, optional | ||
Whether to sparsify the display of a hierarchical index. Setting to False | ||
will display each explicit level element in a hierarchical key for each | ||
column. Defaults to ``pandas.options.styler.sparse.columns`` value. | ||
column. Defaults to ``pandas.options.styler.sparse.columns``, which |
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.
same
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 one hasn't changed, just clarified docs.
@jreback ping green |
cool |