Example1 :
a = np.array([[[1,11,111],[2,22,222]],
[[3,33,333],[4,44,444]],
[[5,55,555],[6,66,666]],[[7,77,777],[8,88,888]]])
>>> a
array([[[ 1, 11, 111],
[ 2, 22, 222]],
[[ 3, 33, 333],
[ 4, 44, 444]],
[[ 5, 55, 555],
[ 6, 66, 666]],
[[ 7, 77, 777],
[ 8, 88, 888]]])
i want reshape() 2D-array and combine odd rows and even rows.
Desired result :
[[1, 11, 111, 3, 33, 333, 5, 55, 555, 7, 77, 777],
[2, 22, 222, 4, 44, 444, 6, 66, 666, 8, 88, 888]]
How can I make the output like above?
Permute axes and reshape to 2D
-