text_plain_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

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

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
d0 = pd.read_csv('../input/train.csv')

l = d0['label']
d = d0.drop('label', axis=1)

plt.figure(figsize=(7, 7))
idx = 150
grid_data = d.iloc[idx].as_matrix().reshape(28, 28)
plt.imshow(grid_data, interpolation='none', cmap='gray')
plt.show()
print(l[idx])