I appended 3 rows to a dataframe with this code: z = pandas.DataFrame.append(z, [{'Items': 'Foo'}, {'Items': 'Barr'}, {'Items': 'Options'}])
and got the below result:
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
Is it possible to move the last 3 rows "Foo, Barr, Options
" to become the first 3 rows instead? Without changing the index..