# 显示所有列
pd.set_option('display.max_columns', None)
#显示所有行
# pd.set_option('display.max_rows', None)...output_container','children'),Output('my_bee_dash','figure')],
[Input('slct_year','value')]
)
# 根据选择的year更新图...Year"] == option_slctd]
dff = dff[dff["Affected by"] == "Varroa_mites"]
# px作图
fig = px.choropleth...(
data_frame = dff,
locationmode = "USA-states",
locations = "state_code",...Bee Colonies'},
template='plotly_dark' # 3种风格之一
)
return container, fig # 返回的是容器和图型