import numpy as np
a1 = np.arange(0,10).reshape(2,5) print(a1)
[[0 1 2 3 4] [5 6 7 8 9]]
a2 = a1.T print(a2)
[[0 5] [1 6] [2 7] [3 8] [4 9]]