I want to one-hot encode multiple columns in my data frame at once using Keras to_categorical. How to do it?
need_to_encode = ['Item_Fat_Content', 'Outlet_Location_Type', 'Outlet_Type', 'Outlet_Size', 'Item_Type_Combined', 'Outlet']
These are the columns I need to one-hot encode.