My current daraframe is:
id name class
1 A [1, 1, 1]
2 B [2, 2]
3 C [3]
4 D [6,6]
all elements in any list will be the same so instead of exploding, we can join only the first element.
All I want my dataframe to look something like this:
id name class
1 A 1
2 B 2
3 C 3
4 D 6
Please help me how can I code this. Thanks.
