I have this array:
my_array = np.arange(1216800).reshape(2, 100, 78, 78)
The shape now is: (2, 100, 78, 78)
and I want to reorder to : (100, 78, 78, 2)
.
I tried something like:
my_array[:, :, 2, :], my_array[:, :, :, 3] = my_array[:, :, :, 3], my_array[:, :, 2, :].copy()
to swap first those columns, but I am receiving the same array.
I saw this but whatever I try, I am having the same array.