In the last post, we learned about reshaping the Numpy array. In this post, we will learn about the transpose of nd-array.
What do you mean by Transpose of Arrays?
It takes the input Array and swaps the rows and columns value and vica-versa.
After transpose rows becomes columns and columns becomes rows. Let us understand by code:-
Output:-
It will convert rows into columns and columns to rows.
if you want to learn python then this tutorial will help you alot:- Python tutorial for beginners in hindi
Please Subscribe to our Youtube Channel - Codin India
I hope you will Like this post :)
Join the Discussion