Is there an easy way to create a table from a multi index dataframe such as this?
This is what I’ve got:
table = go.Table(
header=dict(values=headers),
cells=dict(values=df.T.values, align=["center"] * 4, height=30))
fig = go.Figure(data=table).update_layout(title=title)
fig.show()
The two numerical columns should be under SALES and DISC and I would like NAME and CATEGORY populated