If I have the following dataframe:
Index Col1 Col2 Col3
1 10 x 40
2 y 50
3 z 60
4 20 a 30
I would like to merge rows that have a blank Col1 with the previous row that is not blank in Col1.
Expected output:
Index Col1 Col2 Col3
1 10 x,y,z 40,50,60
4 20 a 30
Is this possible?
Thanks