Data Transformation, Sklearn, Machine Learning, One Hot Encoding, Label Encoding.
features. Python Implementation [OrdinalEncoder(categories=[[‘HS’, ‘AS’, ‘M.S’, ‘Ph.D.’]])] df['Education'].unique() from sklearn.preprocessing import OrdinalEncoder ordinal = OrdinalEncoder(categories=[['HS', 'AS', 'M.S','Ph.D']]) df['Education'] = ordinal.fit_transform(df[['Education']])