Machine-Learning-A-Z-Hands-on-Python-and-R-in-Data-Science
Machine-Learning-A-Z-Hands-on-Python-and-R-in-Data-Science copied to clipboard
Datatype of categorical variable after encoding doesn't change
I dummy coded the independent variable using onehotencoder and columntransformer, but the datatype, instead of changing to float , it remains as object.