Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.Timestamp.resolution PR02" \
-i "pandas.Timestamp.tzinfo GL08" \
-i "pandas.Timestamp.year GL08" \
-i "pandas.api.types.is_iterator PR07,SA01" \
-i "pandas.api.types.is_re_compilable PR07,SA01" \
-i "pandas.api.types.pandas_dtype PR07,RT03,SA01" \
-i "pandas.arrays.ArrowExtensionArray PR07,SA01" \
Expand Down
8 changes: 8 additions & 0 deletions pandas/_libs/lib.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -259,15 +259,23 @@ def is_iterator(obj: object) -> bool:
Check if the object is an iterator.

This is intended for generators, not list-like objects.
This method checks whether the passed object is an iterator. It
returns `True` if the object is an iterator, and `False` otherwise.

Parameters
----------
obj : The object to check
The object to check for iterator type.

Returns
-------
is_iter : bool
Whether `obj` is an iterator.
`True` if the object is of iterator type, otherwise `False`.

See Also
--------
api.types.is_list_like : Check if the input is list-like.

Examples
--------
Expand Down
Loading