pandas 0.8.1 documentation

pandas.DataFrame.T

DataFrame.T

Returns a DataFrame with the rows/columns switched. If the DataFrame is homogeneously-typed, the data is not copied