NameError: name 'go' is not defined
最近在学习fbprophet时,按照安装步骤,搭建好环境之后,使用官方教程进行学习。在执行到下面这句时报错
fig = plot_plotly(m, forecast) # This returns a plotly Figure
具体报错为:
NameError Traceback (most recent call last)
<ipython-input-20-42c219cbc949> in <module>
----> 1 fig = plot_plotly(m, forecast) # This returns a plotly Figure~/anaconda3/lib/python3.7/site-packages/fbprophet/plot.py in plot_plotly(m, fcst, uncertainty, plot_cap, trend, changepoints, changepoints_threshold, xlabel, ylabel, figsize)566 data = []567 # Add actual
--> 568 data.append(go.Scatter(569 name='Actual',570 x=m.history['ds'],NameError: name 'go' is not defined
解决方法:
如果已经安装plotly,这里就不需要安装了。
pip install plotly
pip install ipywidgets
转载请注明:
微信公众号:数据志
简书:数据志
博客园:https://www.cnblogs.com/wheng/
CSDN:https://blog.csdn.net/wzgl__wh
NameError: name 'go' is not defined相关推荐
- NameError: name xx is not defined
这个问题有很多类型的,这里说下我遇到的这个类型 首先我是获取input 值之后提示NameError: name xx is not defined 最后发现是python 2x 与 python 3 ...
- Python报错:NameError: name ‘wraps‘ is not defined
@wraps(func) NameError: name 'wraps' is not defined 解决方法: (1)安装functiontools:pip install functiontoo ...
- Python 解决 :NameError: name ‘reload‘ is not defined 问题
Python 解决 :NameError: name 'reload' is not defined 问题 参考文章: (1)Python 解决 :NameError: name 'reload' i ...
- 【错误记录】执行 Python 程序报错 ( NameError: name ‘reload‘ is not defined )
文章目录 一.报错信息 二.解决方案 一.报错信息 在 Windows 的 cmd 命令行运行 python 脚本时 , 报如下错误 : 执行 python ApkTool.py -analyse - ...
- py+selenium 报错NameError: name 'NoSuchElementException' is not defined【已解决】
报错:NameError: name 'NoSuchElementException' is not defined 如图 解决方法: 头部加一句:from selenium.common.exc ...
- 成功解决NameError: name ‘norm‘ is not defined
成功解决NameError: name 'norm' is not defined 目录 解决问题 解决思路 解决方法 解决问题 NameError: name 'norm' is not defin ...
- 成功解决NameError: name 'file' is not defined
成功解决NameError: name 'file' is not defined 目录 解决问题 解决思路 解决方法 解决问题 NameError: name 'file' is not defin ...
- 成功解决NameError: name 'apply' is not defined
成功解决NameError: name 'apply' is not defined 目录 解决问题 解决思路 解决方法 解决问题 NameError: name 'apply' is not def ...
- NameError: name ‘sess‘ is not defined
代码示例: sess.run(tf.global_variables_initializer()) # 初始化模型的参数 报错提示: NameError: name 'sess' is not def ...
最新文章
- pip 指定目录安装
- php pthread 实例,php 真正的多线程 pthread
- SAP MM 为MB51报表增加查询字段
- 关系数据库中,表中的每行就是一个对象
- json-lib的字符串自动转换坑
- 安卓关于图片压缩的那些事儿,希望给每个安卓开发人员一些帮助
- 注释不能自动设置时间_微波炉维修|微波炉能加热食品,但是到了设定时间,不能自动断电。...
- ubuntu16.04安装python.h_ubuntu16.04安装python3.6踩过的坑
- 2018百度之星程序设计大赛初赛B——1004p1m2
- 复旦大学计算机学院邱锡鹏,复旦大学邱锡鹏教授为我院师生做学术报告
- 中国移动互联网半年大报告解析
- 好用的网页在线客服工具
- 使用pygame制作贪吃蛇小游戏
- 如何让p标签里面的内容首行缩进
- Microbiome:粪菌移植改善自闭症Fecal microbiota transplant (FMT)
- 关于Could not find method javacompileOptions() for arguments
- 搭建全球地图数据服务中心
- AV3680A天馈线测试仪使用方式
- 51单片机两只老虎 c语言,基于51单片机做音乐盒(两只老虎)
- 近视手术,是福音还是噩梦,知道这些危害,你还敢做吗,眼科小知识都在这里