如果我将Pandas Pivot表导出到CSV表格,我会得到
first second
bar one A 0.721555
B -0.706771
two A -1.039575
B 0.271860
baz one A -0.424972
B 0.567020
two A 0.276232
B -1.087401
因为我在excel中处理这些数据,所以我会重复所有行,例如
first second
bar one A 0.721555
bar one B -0.706771
bar two A -1.039575
bar two B 0.271860
baz one A -0.424972
baz one B 0.567020
baz two A 0.276232
baz two B -1.087401
你知道这怎么可能?