File size: 213 Bytes
b064cb5 | 1 2 3 4 5 6 7 8 | data = pd.read_csv('emotion_dataset_raw.csv')
le = LabelEncoder()
le.fit(data.Emotion)
print('Beberapa macam emosi dalam dataset:', list(le.classes_))
data['Emotion'] = le.fit_transform(data.Emotion)
data.head() |