bach.Series.value_counts
value_countsβ
(normalize=False, sort=True, ascending=False, bins=None, method='pandas')β[source]
Returns a series containing counts per unique value
Parametersβ
normalize
(bool) β returns proportions instead of frequenciessort
(bool) β sorts result by frequenciesascending
(bool) β sorts values in ascending order if true.bins
(Optional[int]) β works only with numeric series, groups values into the request amount of bins and counts values based on each range.method
(str) β Method to use for calculating bin ranges. Supported values:- βpandasβ (default): Performs bound adjustments based on Pandas implementation.
- βbachβ: No bound adjustments are performed. Instead, first interval includes both lower and upper bounds.
Returnsβ
a series containing all counts per unique row.