-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH: add kw levels
to Styler.hide_index
to hide only specific levels
#42636
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
Jul 20, 2021
•
edited
Loading
edited
- closes New Feature Request: df.style.hide_index() to hide a particular index level #25475
- tests added / passed
- whatsnew entry 1.4.0
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.
actually a couple of small comments, ping on green.
pandas/io/formats/style.py
Outdated
def hide_index( | ||
self, | ||
subset: Subset | None = None, | ||
levels: int | str | list[int | 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.
for followon, I believe we have Level to describe this typing.
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.
changed, please review.
@jreback pinging on green |
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.
pls rebase as well
# Conflicts: # pandas/io/formats/style_render.py
failures unrelated |