I start by initializing:
3dArray = np.zeros(shape=(0,250,2))
Within a loop, I go through a file and pick out sections of data, resulting in multiple 2D arrays of size (250,2).
For each of these sections, I'm trying to stack these 2d arrays into the 3d array, so that the 0th dimension increases by 1 every time, i.e., 3dArray is of shape (1,250,2), then (2,250,2) etc.
I tried using:
3dArray = np.dstack((3dArray, new2DArray))
stackordstack. All thoseconcatenate/stackfunctions takes a list - use that feature!