How to transpose a NumPy array or matrix with np.transpose and .T, read the axes argument, invert it, and handle 1-D arrays and stacks of matrices. Transposing flips the orientation of a table of ...