text_plain_output_2.png text_plain_output_1.png
import matplotlib.pyplot as plt

import numpy as np

import numpy as np # linear algebra

import pandas as pd

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

numbers_lables_data = pd.read_csv('/kaggle/input/digit-recognizer/train.csv')
x_test = pd.read_csv('/kaggle/input/digit-recognizer/test.csv')

y_train = numbers_lables_data[['label']]
x_train = numbers_lables_data.iloc[:, 1:]

x_train = np.array(x_train).reshape((x_train.shape[0], 28, 28, 1))
x_test = np.array(x_test).reshape((x_test.shape[0], 28, 28, 1))

x_train = x_train / 255
x_test = x_test / 255

plt.imshow(x_train[9])