I have a pandas dataframe with a single row and a certain set of columns. I would to add a new column, with a single cell, that contains a list of K numpy arrays. I obtained a series of K array by the following fragment of code, but it doesn't do what I want.
pd.Series([v for v in new_column])
How can I do it? "new_column" is a list of K numpy arrays.
UPDATE 1: this is new_column
new_column = [array([1,2,3]),array([4,5,6]),...]
I would obtain the following series (pycharm debugger variables style):
new_column = {Series(1,)}(0,[array(1,2,3), array(4,5,6),...])