pandas.DataFrame.T

DataFrame.T

Transpose index and columns