I have data frame in the below format. The description is in string format.
file | description |
---|---|
x | [[array(['MIT', 'MIT', 'MIT', 'MIT', 'MIT'], dtype=object), array([0.71641791, 0.71641791, 0.71641791, 0.69565217, 0.69565217])]] |
y | [[array(['APSL-1.0', 'APSL-1.0', 'APSL-1.0', 'APSL-1.0', 'APSL-1.0'], dtype=object), array([0.28552457, 0.28552457, 0.28552457, 0.28552457, 0.28552457])]] |
How can i convert data Frame into below format.
file | license | score |
---|---|---|
x | ['MIT', 'MIT', 'MIT', 'MIT', 'MIT'] | [0.71641791, 0.71641791, 0.71641791, 0.69565217, 0.69565217] |
y | ['APSL-1.0', 'APSL-1.0', 'APSL-1.0', 'APSL-1.0', 'APSL-1.0'] | [0.28552457, 0.28552457, 0.28552457, 0.28552457, 0.28552457] |
Above is just an example. Data frame is very large.