Skip to content

Commit b3bc45c

Browse files
authored
DOC: fix EX02 errors in docstrings (#51404)
DOC: fix EX02 errors in docstrings V
1 parent 0e12bfc commit b3bc45c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ci/code_checks.sh

-3
Original file line numberDiff line numberDiff line change
@@ -579,9 +579,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
579579
$BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=EX02 --ignore_functions \
580580
pandas.DataFrame.plot.line \
581581
pandas.Series.plot.line \
582-
pandas.Series.sparse.density \
583-
pandas.Series.sparse.npoints \
584-
pandas.Series.sparse.sp_values \
585582
pandas.Timestamp.fromtimestamp \
586583
pandas.api.types.infer_dtype \
587584
pandas.api.types.is_datetime64_any_dtype \

pandas/core/arrays/sparse/array.py

+3
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,7 @@ def sp_values(self) -> np.ndarray:
610610
611611
Examples
612612
--------
613+
>>> from pandas.arrays import SparseArray
613614
>>> s = SparseArray([0, 0, 1, 0, 2], fill_value=0)
614615
>>> s.sp_values
615616
array([1, 2])
@@ -673,6 +674,7 @@ def density(self) -> float:
673674
674675
Examples
675676
--------
677+
>>> from pandas.arrays import SparseArray
676678
>>> s = SparseArray([0, 0, 1, 1, 1], fill_value=0)
677679
>>> s.density
678680
0.6
@@ -686,6 +688,7 @@ def npoints(self) -> int:
686688
687689
Examples
688690
--------
691+
>>> from pandas.arrays import SparseArray
689692
>>> s = SparseArray([0, 0, 1, 1, 1], fill_value=0)
690693
>>> s.npoints
691694
3

0 commit comments

Comments
 (0)