We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
or
and
1 parent 7a179d6 commit 08c0b26Copy full SHA for 08c0b26
pandas/core/dtypes/inference.py
@@ -263,9 +263,10 @@ def is_list_like(obj):
263
False
264
"""
265
266
- return ((hasattr(obj, '__iter__') or isinstance(obj, Iterable)) and
+ return (hasattr(obj, '__iter__') and isinstance(obj, Iterable) and
267
not isinstance(obj, string_and_binary_types))
268
269
+
270
def is_nested_list_like(obj):
271
272
Check if the object is list-like, and that all of its elements
0 commit comments