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

import numpy as np

import numpy as np # linear algebra

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

df = pd.read_csv('/kaggle/input/az-handwritten-alphabets-in-csv-format/A_Z Handwritten Data.csv')

df.shape

X = df.drop(['0'], axis=1)

X.iloc[0].shape

imag = X.iloc[9]
import numpy as np
imagenum = np.array(imag)
finalimage = imagenum.reshape(28, 28)

import matplotlib.pyplot as plt
plt.imshow(finalimage)