Skip to content

Commit e37016a

Browse files
committed
Incorporate allow_sets-kwarg for is_list_like
1 parent 93dd57c commit e37016a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/strings.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1996,12 +1996,12 @@ def _get_series_list(self, others, ignore_index=False):
19961996
elif isinstance(others, np.ndarray) and others.ndim == 2:
19971997
others = DataFrame(others, index=idx)
19981998
return ([others[x] for x in others], False)
1999-
elif is_list_like(others) and not isinstance(others, set):
1999+
elif is_list_like(others, allow_sets=False):
20002000
others = list(others) # ensure iterators do not get read twice etc
20012001

20022002
# in case of list-like `others`, all elements must be
20032003
# either one-dimensional list-likes or scalars
2004-
if all(is_list_like(x) and not isinstance(x, set) for x in others):
2004+
if all(is_list_like(x, allow_sets=False) for x in others):
20052005
los = []
20062006
join_warn = False
20072007
depr_warn = False

0 commit comments

Comments
 (0)