Let's assume I have this dataframe df
:
'Location' 'Rec ID' 'Duration'
0 Houston 126 17
1 Chicago 338 19.3
I would like to add a column with arrays corresponding to my recordings like:
'Location' 'Rec ID' 'Duration' 'Rec'
0 Houston 126 17 [0.2, 0.34, 0.45, ..., 0.28]
1 Chicago 338 19.3 [0.12, 0.3, 0.41, ..., 0.39]
When I do the df.set_value()
command I get the following error:
ValueError: setting an array element with a sequence.