File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
pandas/core/arrays/sparse Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
9797 -i " pandas.Series.dt.unit GL08" \
9898 -i " pandas.Series.pad PR01,SA01" \
9999 -i " pandas.Series.sparse.from_coo PR07,SA01" \
100- -i " pandas.Series.sparse.npoints SA01" \
101100 -i " pandas.Timedelta.max PR02" \
102101 -i " pandas.Timedelta.min PR02" \
103102 -i " pandas.Timedelta.resolution PR02" \
Original file line number Diff line number Diff line change @@ -708,6 +708,18 @@ def npoints(self) -> int:
708708 """
709709 The number of non- ``fill_value`` points.
710710
711+ This property returns the number of elements in the sparse series that are
712+ not equal to the ``fill_value``. Sparse data structures store only the
713+ non-``fill_value`` elements, reducing memory usage when the majority of
714+ values are the same.
715+
716+ See Also
717+ --------
718+ Series.sparse.to_dense : Convert a Series from sparse values to dense.
719+ Series.sparse.fill_value : Elements in ``data`` that are ``fill_value`` are
720+ not stored.
721+ Series.sparse.density : The percent of non- ``fill_value`` points, as decimal.
722+
711723 Examples
712724 --------
713725 >>> from pandas.arrays import SparseArray
You can’t perform that action at this time.
0 commit comments