AI engineering glossary · NumPy pandas visualization
What is array transpose?
Array transpose: Swapping the axes of an array so that rows become columns and columns become rows. In NumPy it is available as the .T attribute and does not move data; it just returns a view with the axes reordered. It is used constantly to align shapes for calculations.
Array transpose: an example
A (2, 3) array a has a.T of shape (3, 2), so element a[0, 2] becomes a.T[2, 0].
Related terms
More NumPy pandas visualization terms
Where you learn it
Array transpose is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.