I have x_train array which is of 235 elements and each element is a numpy array of rows 125 and 125 columns . I neeed this array to be in shape of (235,125,125) so as to feed to my convolutional neural network model ((((similar to case when we need to feed MNIST digit array of (6000,28,28) where we have 60000 samples each of which is 28x28 array)))
Can someone tell how to reshape the x_train array to (235,125,125) ?
P.S I initially converted x_train from pandas series to numpy array below is the snapshot
