The transpose of
x = [[0 1],
[2 3]]
is
xT = [[0 2],
[1 3]]
well the code is:
x = array([[0, 1],[2, 3]]);
np.transpose(x)
this a link for more information:
http://docs.scipy.org/doc/numpy/reference/generated/numpy.transpose.html