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

test = pd.read_csv('../input/test.csv')
train = pd.read_csv('../input/train.csv')

x_train = train.drop(labels=['label'], axis=1)

x_train = x_train / 255.0
test = test / 255.0

x_train = x_train.values.reshape(-1, 28, 28, 1)
test = test.values.reshape(-1, 28, 28, 1)
print('x_train shape:', x_train.shape)