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 2929562 commit 770c2f5Copy full SHA for 770c2f5
pandas/core/reshape/encoding.py
@@ -572,7 +572,6 @@ def from_dummies(
572
)
573
else:
574
data_slice = data_to_decode.loc[:, prefix_slice]
575
- # cats_array = data._constructor_sliced(cats, dtype=dtype)
576
cats_array = data._constructor_sliced(cats, dtype=data.columns.dtype)
577
# get indices of True entries along axis=1
578
true_values = data_slice.idxmax(axis=1)
0 commit comments