Data Transformation, Sklearn, Machine Learning, One Hot Encoding, Label Encoding.
LabelEncoder() df['Employment Status']= lbe.fit_transform(df['Employment Status']) df.head() Disadvantages it gives an order to the categorical value, which might not be suitable to some machine learning algorithms such as Linear Regression, as they are too sensitive to the values; in such case,