text_plain_output_5.png text_plain_output_9.png text_plain_output_4.png image_output_5.png text_plain_output_10.png text_plain_output_6.png image_output_7.png text_plain_output_3.png image_output_4.png text_plain_output_7.png image_output_8.png text_plain_output_8.png image_output_6.png text_plain_output_2.png application_vnd.jupyter.stderr_output_1.png image_output_3.png image_output_2.png image_output_1.png image_output_10.png text_plain_output_11.png image_output_9.png
from tensorflow.keras.preprocessing.image import ImageDataGenerator, array_to_img, img_to_array

import pandas as pd

train = pd.read_csv('../input/digit-recognizer/train.csv')
test = pd.read_csv('../input/digit-recognizer/test.csv')
sample = pd.read_csv('../input/digit-recognizer/sample_submission.csv')

y = train.pop('label')

plt.rcParams['figure.figsize'] = (12, 18)
_ = plt.imshow(array_to_img(train.values.reshape(-1, 28, 28, 1)[10]), cmap='gray')
plt.axis('off')
print(y[10])