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

Php - Delimiter must not be alphanumeric or backslash -

c# - How to change the "Applies To" field under folder auditing options programatically (.NET) -

c++ - Ambiguity when using boost::assign::list_of to construct a std::vector -