Last Updated on June 7, 2022 by shibatau
I. Column Transformer
The data need to be represented in numerical form in order to work with Machine Learning. You may have used LabelEncoding and OneHotEncoding to convert categorical data to a numerical form but the OneHotEncoder categorical_features( ) has been deprecated now.
Let’s learn how to use a new library called Column Transfer to transform categorical data:
II. Sample Scripts 1
You can see the scripts on Google Colaboratory:
III. Sample Scripts 2
You can learn why and how to use Column Transformer from the post:
I have run the scripts showed above and got the columns transformed.
You can see the scripts here: