python - How to merge and split numpy array along the axis? -
i have data in following form shape of array
(10,4,4,3)
first want create array shape (merging, or flattening)
(10,48)
such data (4,4,3) converted 1 row.
secondly want go original shape of data(splitting) such each element again placed @ same location.
thanks
b = a.reshape(10,48) = b.reshape(10,4,4,3)