如何修复 "AttributeError: module 'chart_studio.tools' has no attribute 'make_subplots'"?

3

我正在使用Python 3.7、Plotly 3.8.1和Cufflinks 0.15,出现了以下错误,请帮忙解决。

Ipython代码:

calls.set_index('STRIKE_PRC')[['CF_CLOSE', 'IMP_VOLT']].iplot(subplots=True,
                                                             mode='lines+markers',size=6)

错误代码 -

属性错误 Traceback (most recent call last) in

C:\Users\George Lo\AppData\Roaming\Python\Python37\site-packages\cufflinks\tools.py 在 get_subplots(rows, cols, shared_xaxes, shared_yaxes, start_cell, theme, base_layout, **kwargs) 892 893 layout= base_layout if base_layout else getLayout(theme,**check_kwargs(kwargs,__LAYOUT_AXIS)) --> 894 sp=py.plotly.tools.make_subplots(rows=rows,cols=cols,shared_xaxes=shared_xaxes, 895 shared_yaxes=shared_yaxes,print_grid=False, 896 start_cell=start_cell,**kwargs)

属性错误:模块“chart_studio.tools”没有“make_subplots”属性

1个回答

3
这是 plotly 3.8.X 集成问题,已在 cufflinks github issue tracker 上报告。已合并修复程序,但我认为尚未发布。
编辑:09/05/19 和 21/06/19 更新了我的 conda 环境,但问题仍然存在。

有没有解决这个问题的办法?降级Plotly? - mbadawi23

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接