I am doing a classification problem. My training set is X_train containing 60000 elements and each element has 784 features (basically the intensity of pixels of an image). I want to reshape the images in a 28 * 28 array and store them in another array. I tried but can't find a solution. How can I do that?
for x in range(60000):
X_new=X_train[x].reshape(28,28)
len(X_new)
I expect len(X_new) be 60000 but its length is showing as 28.