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

import pandas as pd

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

f, axarr = plt.subplots(10, 10)
for row in range(10):
    for column in range(10):
        entry = train_data[train_data['label'] == column].iloc[row].drop('label').as_matrix()
        axarr[row, column].imshow(entry.reshape([28, 28]))
        axarr[row, column].get_xaxis().set_visible(False)
        axarr[row, column].get_yaxis().set_visible(False)