Skip to content

Commit 44e3c40

Browse files
authored
CLN: Delete no-op check (#34082)
1 parent 678a9ac commit 44e3c40

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pandas/core/arrays/categorical.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -2654,11 +2654,8 @@ def _convert_to_list_like(list_like):
26542654
return list_like
26552655
if is_sequence(list_like) or isinstance(list_like, tuple) or is_iterator(list_like):
26562656
return list(list_like)
2657-
elif is_scalar(list_like):
2658-
return [list_like]
2659-
else:
2660-
# TODO: is this reached?
2661-
return [list_like]
2657+
2658+
return [list_like]
26622659

26632660

26642661
def factorize_from_iterable(values):

0 commit comments

Comments
 (0)