We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ea0473 commit 6c13843Copy full SHA for 6c13843
pandas/_libs/lib.pyx
@@ -1049,6 +1049,7 @@ cdef inline bint c_is_list_like(object obj, bint allow_sets) except -1:
1049
# we do not count strings/unicode/bytes as list-like
1050
and not isinstance(obj, (str, bytes))
1051
# exclude zero-dimensional numpy arrays, effectively scalars
1052
+ # and not (hasattr(obj, "ndim") and obj.ndim == 0)
1053
and not cnp.PyArray_IsZeroDim(obj)
1054
# exclude sets if allow_sets is False
1055
and not (allow_sets is False and isinstance(obj, abc.Set))
0 commit comments