I have one dataframe that is not well formatted, it look like
0 1
col_name1 val1
col_name2 val2
col_name3 val3
col_name1 val4
col_name2 val5
col_name3 val6
. . .
. . .
and I wanted to make it look like
col_name1,col_name2,col_name3
val1,val2,val3
val4,val5,val6
How can I split it that way?
I tried to transpose the dataframe and didn't work the same for some groupby manipulation.