python-3.x - 如何修复 "AttributeError: module ' Chart_studio.tools' 没有属性 'make_subplots' "

标签 python-3.x plotly

我使用 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)

错误代码-

AttributeError Traceback (most recent call last) in

C:\Users\George Lo\AppData\Roaming\Python\Python37\site-packages\cufflinks\tools.py in 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)

AttributeError: module 'chart_studio.tools' has no attribute 'make_subplots'

最佳答案

这是plotly 3.8.X 之间集成的一个错误,已在 cufflinks github issue tracker 上报告。 。修复已合并,但我认为它尚未发布。

编辑:09/05/19 和 21/06/19 更新了我的 conda 环境,但错误仍然存​​在。

关于python-3.x - 如何修复 "AttributeError: module ' Chart_studio.tools' 没有属性 'make_subplots' ",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55878788/

相关文章:

python-3.x - 如何在 plotly.express 中添加痕迹

javascript - Angular 2 应用程序中的 plotly 点击事件

python - 如何为Python绘图打开街道 map 手动设置颜色图例

python - Decimal 类型 NumPy 的矩阵逆

python - KeyError : 'url_encoded_fmt_stream_map'

python - 如何在 ModelForm 中显示没有默认值的外键字段?

Python "With open(file) as f"没有在循环中保存中断的内容

python - Django:如何翻译模型的字段

R Plotly在循环内添加跟踪

python - Plotly:如何控制双 y 轴的哪条迹线在前面?