Dear All 

I'm looking in a way to reshape a 2D matrix into a 3D one ; in my
example I want to MOVE THE COLUMNS FROM THE 4TH TO THE 8TH IN THE 2ND
PLANE  (3rd dimension i guess) 

a =  np.random.rand(5,8); print(a) 

I tried 

a = p.reshape(d, (2,5,4), ) but it is not what I'm expecting 

Nota : it looks like the following task (while I want to split it in 2
levels and not in 4), but I've not understood at all 

https://stackoverflow.com/questions/31686989/numpy-reshape-and-partition-2d-array-to-3d


Thanks for your support 

Paul
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion

Reply via email to