Skip to content

BUG: set_levels not preserving categorical #52177

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 2 commits into from
Mar 24, 2023
Merged

Conversation

phofl
Copy link
Member

@phofl phofl commented Mar 24, 2023

@mroeschke mroeschke added this to the 2.1 milestone Mar 24, 2023
@mroeschke mroeschke added MultiIndex Categorical Categorical Data Type labels Mar 24, 2023
@mroeschke mroeschke merged commit 7b8023f into pandas-dev:main Mar 24, 2023
@mroeschke
Copy link
Member

Thanks @phofl

@phofl phofl deleted the 52125 branch March 24, 2023 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Categorical Categorical Data Type MultiIndex
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Using set_levels with a Categorical on a mutliindex isn't preserving the dtype
2 participants