I have DataFrame like this:
>>> data = {'Section':['150/12','140/15'], '2m':[4.1, 5.2], '3m':[5.1, 6.2], 'W':[100,125], 'D':[300,400]}
>>> df = pd.DataFrame(data)
>>> df
Section 2m 3m W D
0 150/12 4.1 5.1 100 300
1 140/15 5.2 6.2 125 400
I want the new DataFrame like this:
2m 4.1 150/12 100 300
2m 5.2 140/15 125 400
3m 5.1 150/12 100 300
3m 6.2 140/15 125 400