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 cd56929 commit bc08bffCopy full SHA for bc08bff
pandas/core/reshape/encoding.py
@@ -538,7 +538,8 @@ 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), strict=True)
+ zip(variables_slice,
542
+ [default_category] * len(variables_slice), strict=True)
543
)
544
else:
545
raise TypeError(
0 commit comments