File tree 2 files changed +12
-1
lines changed
pandas/core/arrays/sparse
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
97
97
-i " pandas.Series.dt.unit GL08" \
98
98
-i " pandas.Series.pad PR01,SA01" \
99
99
-i " pandas.Series.sparse.from_coo PR07,SA01" \
100
- -i " pandas.Series.sparse.npoints SA01" \
101
100
-i " pandas.Timedelta.max PR02" \
102
101
-i " pandas.Timedelta.min PR02" \
103
102
-i " pandas.Timedelta.resolution PR02" \
Original file line number Diff line number Diff line change @@ -708,6 +708,18 @@ def npoints(self) -> int:
708
708
"""
709
709
The number of non- ``fill_value`` points.
710
710
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
+
711
723
Examples
712
724
--------
713
725
>>> from pandas.arrays import SparseArray
You can’t perform that action at this time.
0 commit comments