Skip to content

Commit 83262b7

Browse files
committed
DOCS: pandas.Series.sparse.density SA01 docstring validation error fixed
1 parent 1c32b95 commit 83262b7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ci/code_checks.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
139139
-i "pandas.Series.pad PR01,SA01" \
140140
-i "pandas.Series.sem PR01,RT03,SA01" \
141141
-i "pandas.Series.sparse PR01,SA01" \
142-
-i "pandas.Series.sparse.density SA01" \
143142
-i "pandas.Series.sparse.fill_value SA01" \
144143
-i "pandas.Series.sparse.from_coo PR07,SA01" \
145144
-i "pandas.Series.sparse.npoints SA01" \

pandas/core/arrays/sparse/array.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,11 @@ def density(self) -> float:
671671
"""
672672
The percent of non- ``fill_value`` points, as decimal.
673673
674+
See Also
675+
--------
676+
DataFrame.sparse.from_spmatrix : Create a new DataFrame from a
677+
scipy sparse matrix.
678+
674679
Examples
675680
--------
676681
>>> from pandas.arrays import SparseArray

0 commit comments

Comments
 (0)