Preview:
df_without_label = df.iloc[: , :-1]
df_without_label = df_without_label.iloc[1:,: ]
some_digit = df_without_label.iloc[0]
some_digit_image = some_digit.values.reshape(32, 32)
plt.imshow(some_digit_image, cmap="gray")
plt.axis("off")
plt.show()
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter