text_plain_output_1.png
import numpy as np

import pandas as pd

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

test_images = test.values.astype('float32')

train_images = train.ix[:, 1:].values.astype('float32')
train_labels = train.ix[:, 0].values.astype('int32')

train_images_reshaped = train_images.reshape(train_images.shape[0], 28, 28)
train_images_reshaped.shape

train_images = train_images / 255
test_images = test_images / 255

np.std(train_images)