The question is the inverse of this question. I\'m looking for a generic method to from the original big array from small arrays:
array([[[ 0, 1, 2],
Yet another (simple) approach:
threedarray = ... twodarray = np.array(map(lambda x: x.flatten(), threedarray)) print(twodarray.shape)