First page Back Continue Last page Overview Image

Reindexing with „reindex“

growth_frame = growth_frame.T

growth_frame2 = growth_frame.reindex(["Switzerland",

"Italy",

"Germany",

"Greece"])

print(growth_frame2)

2010 2011 2012 2013

Switzerland 3.0 1.8 1.1 1.9

Italy 1.7 0.6 -2.3 -1.9

Germany 4.1 3.6 0.4 0.1

Greece -5.4 -8.9 -6.6 -3.3