pandas / 0.24.2 / reference / api / pandas.sparsearray.value_counts.html /

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

© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.24.2/reference/api/pandas.SparseArray.value_counts.html