I have been doing a course on intermediate machine learning from Kaggle. In the explanation, in order to label categorical data they have used LabelEncoder library from skle