I have been looking at all the related examples but have not been able to adapt them to fit my example.
I have a pandas Dataframe
0 1 2 3 4
0 Date Time Col1 Col2 [Col3, Col4, Coln]
1 Date1 Time1 1.0 2.0 [3.0, 4.0, 5.0]
2 Date2 Time2 6.0 7.0 [8.0, 9.0, 10.0]
2 Date3 Time3 11.0 12.0 [13.0, 14.0, 15.0]
And the expected output should be:
0 1 2 3 4 5 6
0 Date Time Col1 Col2 Col3, Col4, Coln
1 Date1 Time1 1.0 2.0 3.0 4.0 5.0
2 Date2 Time2 6.0 7.0 8.0 9.0 10.0
2 Date3 Time3 11.0 12.0 13.0 14.0 15.0
Note the following: The number of columns and their names are all dynamic and random. And every row will have same number of elements(ie. There will be no Missing entries).