Source Code:
(back to article)
import numpy as np a = np.array([[1, 2], [3, 4], [5, 6]]) b = np.transpose(a) print(b)
Result:
Report an issue