I have a NumPy multi dimensional array of shape (1,76,76,255). I want to reshape it to another multidimensional array of shape (1,255,76,76). It’s still a 4D array, but I need to change the data indices I guess.
Is there an easy way without using loops?
np.transpose?np.transposewill give you arr.shape[::-1] not the one OP wantsnp.transposedocs?