Machine-Learning-A-Z-Hands-on-Python-and-R-in-Data-Science icon indicating copy to clipboard operation
Machine-Learning-A-Z-Hands-on-Python-and-R-in-Data-Science copied to clipboard

Datatype of categorical variable after encoding doesn't change

Open psychodroid007 opened this issue 5 years ago • 0 comments

I dummy coded the independent variable using onehotencoder and columntransformer, but the datatype, instead of changing to float , it remains as object.

psychodroid007 avatar Sep 02 '20 07:09 psychodroid007