Skip to content

BUG: SeriesGroupBy.nunique raises when grouping with an empty categrorical #50081

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
Dec 8, 2022

Conversation

rhshadrach
Copy link
Member

@rhshadrach rhshadrach added Bug Groupby Categorical Categorical Data Type Reduction Operations sum, mean, min, max, etc. labels Dec 6, 2022
@rhshadrach rhshadrach added this to the 2.0 milestone Dec 6, 2022
@mroeschke mroeschke merged commit 4eb4729 into pandas-dev:main Dec 8, 2022
@mroeschke
Copy link
Member

Thanks @rhshadrach

@rhshadrach rhshadrach deleted the nunique_cat_bug branch December 8, 2022 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Categorical Categorical Data Type Groupby Reduction Operations sum, mean, min, max, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SeriesGroupBy.nunique raises IndexError for empty Series with categorical variables
2 participants