I would Convert 3d numpy array to a pandas dataframe that has 1 column, made out of 2d numpy arrays.
concrete example:
np_array = np.zeros((10,3,5))
print(np_array.shape) # (10, 3, 5)
so from this numpy array I would like to create a dataframe with 1 column, that has 10 rows, each row has an item of the shape (3,5).
trying to convert it as-is to pd.DataFrame(np_array) throws out ValueError: Must pass 2-d input error.
Thanks!
each row has an item of the shape (3,5)? Can you provide the structure of the desireddataframe?