Skip to content

Instantly share code, notes, and snippets.

@lydonchandra
Created September 29, 2022 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lydonchandra/07b34ee2ad9cdf23577f8f3048829a25 to your computer and use it in GitHub Desktop.
Save lydonchandra/07b34ee2ad9cdf23577f8f3048829a25 to your computer and use it in GitHub Desktop.
import matplotlib.pyplot as plt
x, y = mnist['data'], mnist['target']
digit1 = x.iloc[0]
digit1_image = digit1.values.reshape(28, 28)
plt.imshow(digit1_image, cmap='binary')
plt.axis('off')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment