text_plain_output_1.png
import matplotlib.pyplot as plt

import numpy as np

import numpy as np # linear algebra

import pandas as pd

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

train = pd.read_csv('/kaggle/input/digit-recognizer/train.csv')
test = pd.read_csv('/kaggle/input/digit-recognizer/test.csv')

(train.shape, test.shape)

def select_pic(i):
    arr = np.array(test[i:i + 1])
    pix = arr.reshape(arr.shape[0], 28, 28)
    img = pix[0]

for i in range(0, 1):
    r = np.random.randint(i, 10000)
    select_pic(r)