text_plain_output_1.png
import pandas as pd

train_path = '/kaggle/input/emotion-classification-nlp/emotion-labels-train.csv'
validation_path = '/kaggle/input/emotion-classification-nlp/emotion-labels-val.csv'
test_path = '/kaggle/input/emotion-classification-nlp/emotion-labels-test.csv'

train_pd = pd.read_csv(train_path)
validation_pd = pd.read_csv(validation_path)
test_pd = pd.read_csv(test_path)

all_data_list = [train_pd, validation_pd, test_pd]

for x_data, x_name in zip(all_data_list, ['TRAIN', 'VALIDATION', 'TEST']):
    print(f"VALUE COUNTS FOR {x_name}:\n{x_data['label'].value_counts()}\n\n")