Skip to content

Commit

Permalink
DOC: Add 'See Also' for pandas.api.types.is_sparse (#59406)
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
  • Loading branch information
ivonastojanovic and mroeschke authored Aug 5, 2024
1 parent 66c5b9a commit 976c1ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.api.types.is_period_dtype SA01" \
-i "pandas.api.types.is_re PR07,SA01" \
-i "pandas.api.types.is_re_compilable PR07,SA01" \
-i "pandas.api.types.is_sparse SA01" \
-i "pandas.api.types.is_timedelta64_ns_dtype SA01" \
-i "pandas.api.types.pandas_dtype PR07,RT03,SA01" \
-i "pandas.arrays.ArrowExtensionArray PR07,SA01" \
Expand Down
4 changes: 4 additions & 0 deletions pandas/core/dtypes/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ def is_sparse(arr) -> bool:
bool
Whether or not the array-like is a pandas sparse array.
See Also
--------
api.types.SparseDtype : The dtype object for pandas sparse arrays.
Examples
--------
Returns `True` if the parameter is a 1-D pandas sparse array.
Expand Down

0 comments on commit 976c1ad

Please sign in to comment.