pandas flip x e y eje

# You can transpose the dataframe
df = pd.DataFrame(data)
df = df.T
# or 
df.transpose()
Av3