Skip to content

Commit 82fd11e

Browse files
Fix indentation in factorize_from_iterables (final)
1 parent 98e66c8 commit 82fd11e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pandas/core/arrays/categorical.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3149,7 +3149,5 @@ def factorize_from_iterables(iterables) -> tuple[list[np.ndarray], list[Index]]:
31493149
# For consistency, it should return two empty lists.
31503150
return [], []
31513151

3152-
codes, categories = zip(
3153-
*(factorize_from_iterable(it) for it in iterables), strict=True
3154-
)
3155-
return list(codes), list(categories)
3152+
codes, categories = zip(*(factorize_from_iterable(it) for it in iterables))
3153+
return list(codes), list(categories)

0 commit comments

Comments
 (0)