With the help of
Numpy numpy.matrix.T() method, we can make a Transpose of any matrix either having dimension one or more than more.
Return : Return transpose of every matrix
Example #1 :
In this example we can see that with the help of
matrix.T() method, we are able to transform any type of matrix.
[   ]
Example #2 :
[[1 4 7] [2 5 8] [3 6 9]]
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course