Is it possible to store arbitrary numpy
arrays as the values of a single column in a dataframe of Pandas
?
The arrays are all 2-dim
What do you mean store arbitrary numpy arrays as the values of a column in a dataframe of Pandas?
Something like this?
import numpy as np
import pandas as pd
x = np.random.randn(50, 25)
random_frame = pd.DataFrame(x)
This will store the array x in a DataFrame where the column names are 0, 1, 2, 3... Could you clarify? I think this is more a comment, but I don't know if I can comment yet.