I am trying to make a table like one above in plotly with column headers and row headers. I have the headers as lists x = [a,b,c,d] y =[red,wite,blue] and the values as nested lists of rows z=[[5,8,9,5],[4,4,5,2],[2,5,3,1]].
The code I have for he table:
fig_table = go.Table(
header=dict(
values=x,
font=dict(size=10),
align="left"
),
cells=dict(
values=z,
align = "left")
)
The values property expects a list of columns instead of rows so my table comes out inverted. Is there a way to enter a list of rows into values? Also how would I add row headers? Thanks
