I’m trying to graph a heatmap of class period attendance by student by referencing a pandas dataframe “graph-me”. Here is the code for the Heatmap data

```
data= [
go.Heatmap(
x=['Period 1', 'Period 2', 'Period 3', 'Period 4', 'Period 5', 'Period 6', 'Period 7', 'Period 8', 'Period 9'],
y=graph_me['Student Name'],
z=[graph_me['Percentage P1'], graph_me['Percentage P2'], graph_me['Percentage P3'], graph_me['Percentage P4'], graph_me['Percentage P5'], graph_me['Percentage P6'], graph_me['Percentage P7'], graph_me['Percentage P8'], graph_me['Percentage P9']],
hoverongaps = False)
],
```

The problem is that my Z values fill in horizontally when I expected them to fill in vertically. I have over 100 values on my y-axis and can’t manually change this. How do I flip the reference of my Z-values without changing my x or y axis?

I’m just learning Plotly, the curve has been steep so I hope my question is understandable