-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH: Add observed keyword to value_counts #43498
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
Labels
Algos
Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff
Categorical
Categorical Data Type
Enhancement
Comments
Hello, is there a code sample you want to add to testing? |
AndrewEckart
added a commit
to AndrewEckart/pandas
that referenced
this issue
Oct 12, 2021
4 tasks
AndrewEckart
added a commit
to AndrewEckart/pandas
that referenced
this issue
Oct 12, 2021
AndrewEckart
added a commit
to AndrewEckart/pandas
that referenced
this issue
Nov 15, 2021
Closed
3 tasks
closing as duplicate of #46486 (even though this came first, there is more discussion there) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Algos
Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff
Categorical
Categorical Data Type
Enhancement
Is your feature request related to a problem?
If you do
value_counts
on a categorical there's no way to suppress unobserved categories.Describe the solution you'd like
Add an observed keyword to value_counts.
API breaking implications
None, unless we want to revisit the default in light of #35967.
The text was updated successfully, but these errors were encountered: