Data Transformation, Sklearn, Machine Learning, One Hot Encoding, Label Encoding.
encoding on the embarked import numpy as np ### let's perform label encoding on embarked ordinal_label = {k: i for i, k in enumerate(df['embarked'].unique(), 0)} df['embarked'] = df['embarked'].map(ordinal_label) #Performing label encoding on alone ## let's perform label encoding on alone