I want to turn this DataFrame
x K
methane 0.006233 109.237632
ethane 0.110002 6.189667
propane 0.883765 0.770425
into something like this
0.006233 0.110002 0.883765
methane 109.237632 - -
ethane - 6.189667 -
propane - - 0.770425
I keep hesitating on whether this is a regular thing to do and digging through the docs or whether I should code something myself. I don't know what I would call this operation.