text_plain_output_1.png
import pandas as pd

df = pd.read_csv('/kaggle/input/playground-series-s3e10/train.csv')

label = 'Class'
classes = df[label].unique().tolist()
print(f'Label classes: {classes}')
df[label] = df[label].map(classes.index)