Skip to content

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

Merged
merged 17 commits into from
Aug 5, 2021

Conversation

attack68
Copy link
Contributor

@attack68 attack68 commented Jul 20, 2021

@attack68 attack68 marked this pull request as ready for review July 20, 2021 22:01
@attack68 attack68 added this to the 1.4 milestone Jul 27, 2021
@attack68 attack68 added Enhancement Styler conditional formatting using DataFrame.style labels Jul 27, 2021
Copy link
Contributor

@jreback jreback left a 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.

def hide_index(
self,
subset: Subset | None = None,
levels: int | str | list[int | str] | None = None,
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed, please review.

@attack68
Copy link
Contributor Author

attack68 commented Aug 1, 2021

@jreback pinging on green

Copy link
Contributor

@jreback jreback left a 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
@jreback jreback merged commit 0eebe35 into pandas-dev:master Aug 5, 2021
@jreback
Copy link
Contributor

jreback commented Aug 5, 2021

failures unrelated

@attack68 attack68 deleted the hide_index_levels branch August 5, 2021 16:40
feefladder pushed a commit to feefladder/pandas that referenced this pull request Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Styler conditional formatting using DataFrame.style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New Feature Request: df.style.hide_index() to hide a particular index level
2 participants