我有一个这样的数据框
Fruits Destination
---------------------
Apple Target
Orange Source
Pineapple Source
Berry Target
Grape Flip
Guva Transform
Raspberry Flip
Chikoo Transform
在应用转置后,我想将行更改为列并将值分组。
Target Source Flip Transform Target Source Flip Transform
---------------------------------------------------------------------
Apple Orange Raspberry Chikoo Berry Pineapple Grape Guva
但是我的预期输出是
Target Source Flip Transform
------------------------------------
Apple Orange Raspberry Chikoo
Berry Pineapple Grape Guva
如何实现?