I have an array with a random length of which I don't know the size of.
I want to reshape the array into a 2d array with a size of 128
np.reshape(array, (128, -1))
If I do this, there will be values that are leftover or more than needed, thus the function fails. How do I tell numpy to throw away leftover data or to throw away the data in hand if there isn't enough data to reshape?