I am trying to split out series in a column and map it against a unique value (in this case user).
So far I have been able to get the data frame to look like this.
df1:
   user      weight
0  james     [100.0]
1  brandon   [60.0, 40.0]
2  brandon   [60.0, 40.0]
3  chris     [100.0]
4  james     [80.0, 5.0, 15.0]      
5  james     [80.0, 5.0, 15.0]
6  james.    [80.0, 5.0, 15.0]
I tried the split explode method, but it creates duplicate rows.
What is the best way to loop through the series and update the data frame as this desired output:
df2:
0 james    [100.0]
1 brandon  [60.0]
2 brandon  [40.0]
3 chris    [100.0]
4 james    [80.0]
5 james    [5.0]
6 james    [15.0]
Thank you.
 
    