I have the following dataframe:
0 1 0 enrichment_site value 1 last_updated value
You can use df = df.T to transpose the dataframe. This switches the dataframe round so that the rows become columns.
df = df.T
You could also use pd.DataFrame.transpose().