1
我追加3行与该代码数据框:z = pandas.DataFrame.append(z, [{'Items': 'Foo'}, {'Items': 'Barr'}, {'Items': 'Options'}])
,得到了如下的结果:重新排序行
Items Last 12 Months
0 Apple 48.674
1 Dragon Fruit 8.786
2 Milk 2.367
3 Foo 3.336
4 Barr 0.005
5 Options NaN
是否可以移动最后3行“Foo, Barr, Options
”成为第一3行而不是?不改变索引..
嗯,但总共有670行..我刚刚给了整个人口的片段。 –