Data Transformation, Sklearn, Machine Learning, One Hot Encoding, Label Encoding.
one hot encoding provides better results [4]. Advantages On the other hand, label encoding is suitable with Decision Tree and Random Forest algorithms because they don’t depend on the values of the categorical variables[4]. This process is okay until the number of labels is considerably small. When