Skip to content
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

BUG: GH38672 SeriesGroupBy.value_counts for categorical #38796

Merged
merged 5 commits into from
Dec 31, 2020
Merged

BUG: GH38672 SeriesGroupBy.value_counts for categorical #38796

merged 5 commits into from
Dec 31, 2020

Conversation

venaturum
Copy link
Contributor

@venaturum venaturum commented Dec 30, 2020

Unobserved categories in Series were being dropped in value_counts, which was inconsistent with Series.value_counts

Unobserved categories in Series were being dropped in value_counts, which was inconsistent with Series.value_counts
@jreback jreback added Bug Categorical Categorical Data Type Groupby labels Dec 30, 2020
@jreback
Copy link
Contributor

jreback commented Dec 30, 2020

also pls add a whatsnew note to 1.3, bug fixes under categorical is fine.

so i guess this was just not tested before.

@venaturum
Copy link
Contributor Author

@jreback

also pls add a whatsnew note to 1.3, bug fixes under categorical is fine.

No worries. I think it might be more consistent with past whatsnew files to place it under Groupby/resample/rolling though.

Happy to do what I'm told though 😄

@jreback jreback added this to the 1.3 milestone Dec 31, 2020
@jreback jreback merged commit 46841f8 into pandas-dev:master Dec 31, 2020
@jreback
Copy link
Contributor

jreback commented Dec 31, 2020

thanks @venaturum

@jreback
Copy link
Contributor

jreback commented Dec 31, 2020

might resolve #32471 or #25970

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: SeriesGroupBy.value_counts is inconsistent with Series.value_counts when the Series is categorical
2 participants