Skip to content

Commit

Permalink
DOC: fix SA01 for pandas.api.types.is_list_like (#59864)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuhinsharma121 authored Sep 25, 2024
1 parent 0962007 commit ffb3c15
Show file tree
Hide file tree
Showing 2 changed files with 6 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 @@ -116,7 +116,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.api.types.is_hashable PR01,RT03,SA01" \
-i "pandas.api.types.is_integer PR01,SA01" \
-i "pandas.api.types.is_iterator PR07,SA01" \
-i "pandas.api.types.is_list_like SA01" \
-i "pandas.api.types.is_named_tuple PR07,SA01" \
-i "pandas.api.types.is_object_dtype SA01" \
-i "pandas.api.types.is_re PR07,SA01" \
Expand Down
6 changes: 6 additions & 0 deletions pandas/_libs/lib.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1220,6 +1220,12 @@ def is_list_like(obj: object, allow_sets: bool = True) -> bool:
bool
Whether `obj` has list-like properties.

See Also
--------
Series : One-dimensional ndarray with axis labels (including time series).
Index : Immutable sequence used for indexing and alignment.
numpy.ndarray : Array object from NumPy, which is considered list-like.

Examples
--------
>>> import datetime
Expand Down

0 comments on commit ffb3c15

Please sign in to comment.