transpose() / .T (NumPy)
Transposing flips a 2-D array over its diagonal, swapping its rows and columns so an (m, n) array becomes (n, m). The shortcut is the .T attribute, and it…
Transposing flips a 2-D array over its diagonal, swapping its rows and columns so an (m, n) array becomes (n, m). The shortcut is the .T attribute, and it…