I am new to python and have a need where I need to trasform below pandas dataframe -
type c1 c2 c3
a 9 10.0 -11.11
b 162 165.0 -1.85
c 16 15.0 6.25
to this format-
a b c
c1 c2 c3 c1 c2 c3 c1 c2 c3
9 10.0 -11.11 162 165 -1.85 16 15.0 6.25
I have tried various combinations of transpose, multi-indexing and pivoting but no luck, could you please help me find the solution for this.
Thanks!