gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 18:47:31 29 4
gpt4 key购买 nike

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

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com