I have a dataframe in which one column I have a list of dictionaries, and in this dictionaries I has the name of the of the columns I want to create and its value.
id stats opta_id
0 1307 [{name: 'speed', value: 5},{name: 'strength', value: 10}....] p176278
1 2410 [{name: 'vision', value: 5}, {name: 'strength', value: 10}....] p118335
2 200 [{name: 'speed', value: 5},{name: 'vision', value: 10}....] p92187
3 3314 [{name: 'speed', value: 5},{name: 'strength', value: 10}....] p154976
4 9223 [{name: 'speed', value: 5},{name: 'strength', value: 10}....] p446990
the list can have up to 80 elements and the length of it is different on each row.
How could flat this column in order to get something similar to this?
id stats.speed stats.strength stats.vision ..... opta_id
0 1307 5 10 nan ..... p176278
1 2410 nan 5 10 ..... p118335
.
.
.
thank you!