Data Transformation, Sklearn, Machine Learning, One Hot Encoding, Label Encoding.
encode output values, i.e. y, and not the input X. It is similar to the ordinal encoder except, here the numeric values are assigned automatically without following any sort of natural order. Generally, the alphabetical order of the categorical values is used to determine which numerical value