Welcome Guys,
We will be looking at Array transposition in this quick notes.
This is part of lectures on Learning Python for Data Analysis and Visualization by Jose Portilla on Udemy.
import numpy as np
arr = np.arange(50)
arr
arr.reshape((10,5))
arr.T
np.dot(arr.T, arr)
arr3d = np.arange(50).reshape((5,5,12))
arr3d
arr2d2 = np.arange(40).reshape((4,5,2))
arr2d2
arr2d2.transpose((1,0,2))
arr2e = np.array([[1,2,3]])
arr2e.swapaxes(0,1)