-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH: add styler
option context for sparsification of columns and index separately
#41512
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
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.
didn't look except for first comment
doc/source/user_guide/options.rst
Outdated
@@ -482,6 +482,11 @@ plotting.backend matplotlib Change the plotting backend | |||
like Bokeh, Altair, etc. | |||
plotting.matplotlib.register_converters True Register custom converters with | |||
matplotlib. Set to False to de-register. | |||
styler.sparsify_index True "Sparsify" MultiIndex display for rows |
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.
we had a discussion a while back about nesting display.styler..... (e.g. as we do display.html), but maybe this was to move .html to the top level, this is prob better
consider styler.sparse.index
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.
i think having its own context is useful for what follows. I have changed to your consideration.
great thanks! |
This PR closes #41142.
It adds a new
pandas.options
context for Styler (see #41395), and create thesparse.index
andsparse.columns
options, defaulting to True.It also allows a keyword application for sparsification via the
.render
method, (this might not really be necessary: opinion welcome)