OneHotEnconder not transforming the categorical columns

I tried applying OneHotEncoder on categorical columns but as you can see in the last cell categorical columns didn’t transformed

what could be the reason and how to resolve it ?

There are new columns that represent the categorical ones.

In the latter step you remove the categorical columns, leaving only one-hot encoded columns.

2 Likes

yeah I completely forgot that :sweat_smile: