We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3157d07 commit cd56929Copy full SHA for cd56929
pandas/core/reshape/encoding.py
@@ -538,7 +538,7 @@ def from_dummies(
538
raise ValueError(len_msg)
539
elif isinstance(default_category, Hashable):
540
default_category = dict(
541
- zip(variables_slice, [default_category] * len(variables_slice))
+ zip(variables_slice, [default_category] * len(variables_slice), strict=True)
542
)
543
else:
544
raise TypeError(
0 commit comments