I have a list of numpy arrays that I'm trying to convert to DataFrame. Each array should be a row of the dataframe.
Using pd.DataFrame() isn't working. It always gives the error: ValueError: Must pass 2-d input.
Is there a better way to do this?
This is my current code:
list_arrays = [ array([[0, 0, 0, 1, 0, 0, 0, 0, 00]], dtype='uint8'),
array([[0, 0, 3, 2, 0, 0, 0, 0, 00]], dtype='uint8')
]
d = pd.DataFrame(list_arrays)
ValueError: Must pass 2-d input