Transposing of NumPy Array
As the name suggests, we will take the transpose of a given 2-D
NumPy array. Just like matrix transpose in linear algebra, we convert the rows of a 2-D NumPy array into columns and convert its columns into rows. The function
transpose() or simply
T can be used to take the transpose of a 2-D array.