January 13, 2024
Difference between LabelEncoder and OrdinalEncoder to Encode Categorical Values
PragatiYou can use OrdinalEncoder to preserve the order of categorical data i.e. small, medium, large, extra large or low, medium, high. You can use LabelEncoder for categorical data where there’s no order in data i.e. red, green, blue.