Open wukan1986 opened 6 months ago
Definitely not a bug for general dtypes, but maybe drop_first
should be guaranteed to drop the first level of an Enum.
Also, maybe Enum -> to_dummies()
should create column for every level of the Enum, even if they are not present in the dataset. Thus to_dummies()
will always generate the same schema as output, regardless of the input data.
Maybe sort the new columns alphabetically and remove the first one
Checks
Reproducible example
Log output
No response
Issue description
The result of drop_first is not unique
If it is a large table, do not make any changes to the table. The columns obtained each time may also be different.
Expected behavior
I hope first category from the variables being encoded not affected by order
Installed versions