# What does Transpose really do❔

When I’m building a machine learning model, I find myself engaged in “numpy.ndarray.T” I would usually use this blindly, but this lack of knowledge increased my practice operating with issues that increased the occurrence of problems in my learning models.

In linear algebra, transpose is an operator that flips a matrix over its diagonal. For me that definition gives me a straight forward understanding of what a transpose does to a matrix. Essentially if given vector **A** with dimensions **M x N** where **M** is the rows and **N** is the columns. The transpose of that vector **A **would be **N x M**.

I encourage you to take a look at this video on Transpose from Khan Academy for more.