pandas.api.types.
is_iterator
Check if the object is an iterator.
For example, lists are considered iterators but not strings or datetime objects.
Whether obj is an iterator.
Examples
>>> is_iterator([1, 2, 3]) True >>> is_iterator(datetime(2017, 1, 1)) False >>> is_iterator("foo") False >>> is_iterator(1) False