statewise_cases["Country"] = "Country" print(statewise_cases) fig = px.treemap(statewise_cases, path = ['Country', 'State'], values='Deaths') fig.show()
python plotly
plotly ×1
python ×1