text_plain_output_1.png
import matplotlib.pyplot as plt

import numpy as np

import pandas as pd

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

print(train_set.iloc[3, 0])
image_array = np.asfarray(train_set.iloc[3, 1:]).reshape((28, 28))
plt.imshow(image_array, cmap='Greys', interpolation='None')