1 year ago
#379550
Alan22
combining non-uniform size 2D arrays into a 3D array in python?
I've searched on stackoverflow but could not find an answer to this specific question. Sorry if it is a naive question, I am a newbie to python. I have three 2d arrays of shapes
Shape of arr_X =
(1,8), Shape of arr_Y =
(1,8), & Shape of
arr_Z =
(5,8).
From these 2D arrays I want to make one 3D array of shape (5, 8, 8).
Can anyone help me to form the 3D array?
python-3.x
numpy-ndarray
array-broadcasting
numpy-slicing
numpy-ufunc
0 Answers
Your Answer