text_plain_output_1.png
from keras.utils import to_categorical

import pandas as pd

train_data = pd.read_csv('/kaggle/input/digit-recognizer/train.csv')

train_label = train_data['label']

train_label_to_cat = to_categorical(train_label)
train_label_to_cat.shape