Data analysis labNumPy problems

Problem 34 of 50 · Shape · Easy

Swap rows and columns

Transpose a 2 by 3 table into 3 by 2.

Preparing NumPy, Pandas, and MatplotlibShift+Enter runs the cell you are in.

Print the transpose of the table. .T swaps the axes. The first row becomes the first column.

1

Your solution

2

Scratch