我有3个pandas数据框:
abc
xyz
colour
type
pattern
colour
type
pattern
lenght
breadth
height
area
lenght
breadth
height
area
我想合并数据帧,使其看起来像这样:
abc colour length
type breadth
pattern height
area
xyz colour length
type breadth
pattern height
area
我还想将最终结果导出到Excel工作表中,那么如何在不使它看起来混乱的情况下做到这一点?
答案 0 :(得分:0)
第一concat第二和第三df与第一df的行,并连接它们:
FactoryClass