Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 343 Bytes

transpose-matrix.md

File metadata and controls

9 lines (6 loc) · 343 Bytes

Transpose a numpy array (matrix) with .T

To transpose a matrix in numpy, use the .T attribute.

some_matrix.T

See the documentation and the Wikipedia page on matrix transposition.