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 @@ -100,7 +100,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
100
100
-i " pandas.Series.sparse.fill_value SA01" \
101
101
-i " pandas.Series.sparse.from_coo PR07,SA01" \
102
102
-i " pandas.Series.sparse.npoints SA01" \
103
- -i " pandas.Series.sparse.sp_values SA01" \
104
103
-i " pandas.Timedelta.max PR02" \
105
104
-i " pandas.Timedelta.min PR02" \
106
105
-i " pandas.Timedelta.resolution PR02" \
Original file line number Diff line number Diff line change @@ -603,6 +603,18 @@ def sp_values(self) -> np.ndarray:
603
603
"""
604
604
An ndarray containing the non- ``fill_value`` values.
605
605
606
+ This property returns the actual data values stored in the sparse
607
+ representation, excluding the values that are equal to the ``fill_value``.
608
+ The result is an ndarray of the underlying values, preserving the sparse
609
+ structure by omitting the default ``fill_value`` entries.
610
+
611
+ See Also
612
+ --------
613
+ Series.sparse.to_dense : Convert a Series from sparse values to dense.
614
+ Series.sparse.fill_value : Elements in `data` that are `fill_value` are
615
+ not stored.
616
+ Series.sparse.density : The percent of non- ``fill_value`` points, as decimal.
617
+
606
618
Examples
607
619
--------
608
620
>>> from pandas.arrays import SparseArray
You can’t perform that action at this time.
0 commit comments