Reducing Functions Supported by Categoricals
The following reducing/aggregating methods are supported by Categoricals. The NaN versions exclude NaN values.
When a method is called on a Categorical, it’s applied to each group.
Reducing Function |
Description |
---|---|
|
Total number of items |
|
Total number of each unique item |
|
First item, last item |
|
Mean, NaN version |
|
Median, NaN version |
|
Minimum, NaN version |
|
Maximum, NaN version |
|
The number that occurs most often (skips NaNs) |
|
Take nth value, or a subset if n is a list |
|
Product of all items |
|
Standard deviation, NaN version |
|
Sum of all items, NaN version |
|
Trimmed mean br (skips NaNs) |
|
Variance, NaN version |