Skip to content

Commit f19a596

Browse files
committed
use is_list_like
1 parent 8243ec8 commit f19a596

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/ops.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@ def wrapper(self, other):
12411241
else:
12421242
# scalars, list, tuple, np.array
12431243
is_other_int_dtype = is_integer_dtype(np.asarray(other))
1244-
if isinstance(other, list):
1244+
if is_list_like(other) and not isinstance(other, np.ndarray):
12451245
# TODO: Can we do this before the is_integer_dtype check?
12461246
# could the is_integer_dtype check be checking the wrong
12471247
# thing? e.g. other = [[0, 1], [2, 3], [4, 5]]?

0 commit comments

Comments
 (0)