【发布时间】:2018-05-18 03:24:48
【问题描述】:
假设我有一个如下的 DataFrame:
first bar baz foo
second one two one two one two three
A 1 2 3 4 5 6 7
B 8 9 10 11 12 13 14
我想像这样创建一个新的 DataFrame:
barone bartwo bazone baztwo fooone footwo foothree
A 1 2 3 4 5 6 7
B 8 9 10 11 12 13 14
可能的代码是什么?
【问题讨论】:
标签: python pandas multi-index