I have an array of dimension (3,120,100) and I want to convert it into an array of dimensions (120,100,3). The array I have is
arr1 = np.ones((120,100), dtype = int)
arr2 = arr1*2
arr3 = arr1*3
arr = np.stack((arr1,arr2,arr3))
arr
It contains three 120x100 arrays of 1's, 2's, and 3's. When I use reshape on it, I get 120x100 arrays of 1's, 2's, or 3's.
I want to get an array of 120x100 where each element is [1,2,3]