Skip to content

Commit cd56929

Browse files
authored
Fix zip function call to include strict parameter
1 parent 3157d07 commit cd56929

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/reshape/encoding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ def from_dummies(
538538
raise ValueError(len_msg)
539539
elif isinstance(default_category, Hashable):
540540
default_category = dict(
541-
zip(variables_slice, [default_category] * len(variables_slice))
541+
zip(variables_slice, [default_category] * len(variables_slice), strict=True)
542542
)
543543
else:
544544
raise TypeError(

0 commit comments

Comments
 (0)