You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Plotly Express直方图无法显示问题求助

Plotly Express直方图无法显示问题求助

各位好,我试着用下面这段代码绘制直方图,但页面上完全看不到任何图形,实在搞不懂哪里出问题了,有没有朋友能帮忙排查一下呀?

fig = px.histogram(
                    df,
                    x = 'age',
                    marginal = 'box',
                    nbins = 47,
                    title = 'Distribution of Age'
)
fig.update_layout(bargap = 0.1)
fig.show()

备注:内容来源于stack exchange,提问作者Hardeep Singh

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.14 13:25:28