In [2]:
df
Out[2]:
a
b
c
0
4
7
10
1
5
8
11
2
6
9
12
In [3]:
df
.
T
Out[3]:
0
1
2
a
4
5
6
b
7
8
9
c
10
11
12
In [4]:
df
.
transpose
()
Out[4]:
0
1
2
a
4
5
6
b
7
8
9
c
10
11
12