Skip to content

Commit 6c13843

Browse files
committed
Update is_list_like
1 parent 4ea0473 commit 6c13843

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pandas/_libs/lib.pyx

+1
Original file line numberDiff line numberDiff line change
@@ -1049,6 +1049,7 @@ cdef inline bint c_is_list_like(object obj, bint allow_sets) except -1:
10491049
# we do not count strings/unicode/bytes as list-like
10501050
and not isinstance(obj, (str, bytes))
10511051
# exclude zero-dimensional numpy arrays, effectively scalars
1052+
# and not (hasattr(obj, "ndim") and obj.ndim == 0)
10521053
and not cnp.PyArray_IsZeroDim(obj)
10531054
# exclude sets if allow_sets is False
10541055
and not (allow_sets is False and isinstance(obj, abc.Set))

0 commit comments

Comments
 (0)