pandas 0.9.1 documentation

pandas.DataFrame.transpose

DataFrame.transpose()

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