pandas.SparseArray.value_counts

SparseArray.value_counts(dropna=True)[source]

Returns a Series containing counts of unique values.

Parameters:
dropna : boolean, default True

Don’t include counts of NaN, even if NaN is in sp_values.

Returns:
counts : Series
Scroll To Top