df = df.set_index("Col1").T # "Col1" is the column you want to set as index.
df.set_index('Attribute').T