In [] : arr_copy = arr.copy()
In []: aar
Out[]: array([[0, 1, 2],
[3, 4, 5],
[6, 7, 8]])
In []: aar.T or aar.transpose()
Out[]: array([[0, 3, 6],
[1, 4, 7],
[2, 5, 8]])
Recommended Posts