Store python array in each entry of a column

I have got an array ‘mutlilabel’ which looks like this:

       [[0, 0, 0, 1, 0, 0, 0, 0],
       [1, 0, 0, 0, 0, 0, 0, 0],
       [1, 0, 0, 1, 0, 0, 0, 0],
                  ...
       [0, 0, 0, 1, 0, 0, 0, 0],
       [1, 0, 0, 0, 0, 0, 0, 0]]

and want to store each of those arrays in my target variable as I am facing a multi-label classification task. How can I achieve that? My code:

pd.DataFrame(multilabel)

Outputs multiple columns:

0   1   2   3   4   5   6   7

0   0   0   0   0   1   0   0   0
1   1   0   0   0   0   0   0   0
2   1   0   0   0   0   0   0   0

Thanks in advance!

Answer

df = pd.DataFrame(list(multilabel))
list_column = df.apply(lambda row: row.values, axis=1)
pd.DataFrame(list_column, columns=['list_column'])

Result df:enter image description here