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) 

Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -