Transposing of NumPy Array

In this lesson, transposing of NumPy arrays are explained.

We'll cover the following

Transpose

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.

Get hands-on with 1000+ tech skills courses.