W3cubDocs

/pandas 0.25

pandas.Series.sparse.npoints

Series.sparse.npoints

The number of non- fill_value points.

Examples

>>> s = SparseArray([0, 0, 1, 1, 1], fill_value=0)
>>> s.npoints
3

© 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.25.0/reference/api/pandas.Series.sparse.npoints.html