code:
import pandas as pd
data = pd.DataFrame({'Temp':[0,20,40,60],'Pressure':[0.0002,0.0012,0.0060,0.0300]})
print(data)
outcome:
Pressure Temp
0 0.0002 0
1 0.0012 20
2 0.0060 40
3 0.0300 60
However, I want this:
Temp Pressure
0 0 0.0002
1 20 0.0012
2 40 0.0060
3 60 0.0300
Why the order is not as I specified!
Version of pandas: pandas:0.22.0