-
-
Notifications
You must be signed in to change notification settings - Fork 19.1k
Closed
Labels
AlgosNon-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diffNon-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diffClosing CandidateMay be closeable, needs more eyeballsMay be closeable, needs more eyeballsEnhancement
Description
Feature Type
-
Adding new functionality to pandas
-
Changing existing functionality in pandas
-
Removing existing functionality in pandas
Problem Description
I would like pandas to have a feature for when I need to see both the count and relative counts of a Series at once.
Feature Description
Now, I can get the count by value_counts and the relative count by passing the normalize parameter to that function. Sometimes it is more interesting to see them at once, probably using a new parameter to this function. Maybe editing the normalize parameter to handle three states, raw, relative, or both.
Alternative Solutions
Using two consecutive calls to value_counts by different values for normalize could provide the functionality.
Additional Context
No response
Metadata
Metadata
Assignees
Labels
AlgosNon-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diffNon-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diffClosing CandidateMay be closeable, needs more eyeballsMay be closeable, needs more eyeballsEnhancement