i have a sample dataset
id value
[10,10] ["apple","orange"]
[15,67] ["banana","orange"]
[12,34,45] ["apple","banana","orange"]
i want to convert this into
id1 id2 id3 value1 value2 value3
10 10 nan apple orange nan
15 67 nan banana orange nan
10 10 45 apple banana orange
- i solved this problem earlier using if else conditions
- but data could be dynamic so it may have more then 3 values.
- How to split into multiple column with renaming it as mentioned