Skip to content

ENH: make levels consistent and name responsive #43570

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 1 commit into from
Sep 14, 2021

Conversation

attack68
Copy link
Contributor

@@ -1891,11 +1891,12 @@ def set_sticky(
else:
# handle the MultiIndex case
range_idx = list(range(obj.nlevels))
levels = sorted(levels) if levels else range_idx
levels_: list[int] = refactor_levels(levels, obj) if levels else range_idx
Copy link
Contributor

Choose a reason for hiding this comment

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

wouldn't object to your moving rfactor_levels to indexing (of course could be a different PR too)

Copy link
Contributor

Choose a reason for hiding this comment

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

but later :->

@jreback jreback added the Styler conditional formatting using DataFrame.style label Sep 14, 2021
@jreback jreback added this to the 1.4 milestone Sep 14, 2021
@jreback jreback merged commit 82a102b into pandas-dev:master Sep 14, 2021
@attack68 attack68 deleted the sticky_level branch September 15, 2021 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Styler conditional formatting using DataFrame.style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ENH: set sticky levels accept level names
2 participants