An example of my df:
Index time type pwa0 pwa1 pwa2
63 16:05:03 nonJ [20:733:845] [] [2750]
I would like to split the columns having no, one or multiple values (pwa0, pwa1 and pwa2) like this:
Index time type pwa0 pwa1 pwa2
63 16:05:03 nonJ 20 2750
63 16:05:03 nonJ 733
63 16:05:03 nonJ 845
In contrast to the possible shown duplicate, the to be splitted columns are not correlated. The split order per column should just be order based: first the first value, then the second etc. If no values are present in a column, the cell should remain empty. Any suggestions will be highly appreciated!