treemap()在plotly.express中得到了意外的关键字参数'path'

问题描述 投票:0回答:1
statewise_cases["Country"] = "Country"
print(statewise_cases)
fig = px.treemap(statewise_cases, path = ['Country', 'State'], values='Deaths')
fig.show()
python plotly
1个回答
0
投票

plotly.graph_objects.Treemap没有关键字参数path。这就是错误消息的意思。它虽然有pathbar,但应该是dict。

© www.soinside.com 2019 - 2024. All rights reserved.