AttributeError: module ‘seaborn‘ has no attribute ‘tsplot‘
AttributeError: module 'seaborn' has no attribute 'tsplot'
问题:
g = sns.tsplot(df['pm2.5'])
plt.figure(figsize=(5.5, 5.5))
g = sns.tsplot(df['pm2.5'])
# lineplot
g.set_title('Time series of pm2.5')
g.set_xlabel('Index')
g.set_ylabel('pm2.5 readings')
解决:
g = sns.lineplot(df['pm2.5'])
plt.figure(figsize=(5.5, 5.5))
g = sns.lineplot(df['pm2.5'])
# lineplot
g.set_title('Time series of pm2.5')
g.set_xlabel('Index')
g.set_ylabel('pm2.5 readings')
完整错误:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-9-7d4bb0e8da02> in <module>1 plt.figure(figsize=(5.5, 5.5))
----> 2 g = sns.tsplot(df['pm2.5'])3 g.set_title('Time series of pm2.5')4 g.set_xlabel('Index')5 g.set_ylabel('pm2.5 readings')AttributeError: module 'seaborn' has no attribute 'tsplot'
<Figure size 396x396 with 0 Axes>
This release also removes a few previously-deprecated features:
The tsplot function and seaborn.timeseries module have been removed. Recall that tsplot was replaced with lineplot().
The seaborn.apionly entry-point has been removed.
The seaborn.linearmodels module (previously renamed to seaborn.regression) has been removed.
refer to:https://seaborn.pydata.org/whatsnew.html
参考:AttributeError: module 'seaborn' has no attribute 'tsplot'
参考:seaborn
AttributeError: module ‘seaborn‘ has no attribute ‘tsplot‘相关推荐
- AttributeError module ‘seaborn‘ has no attribute ‘tsplot‘
AttributeError: module 'seaborn' has no attribute 'tsplot' 新版seaborn没有了这个函数.用lmplot代替 使用,举例lmplot的da ...
- 成功解决AttributeError: module ‘seaborn‘ has no attribute ‘lvplot‘
成功解决AttributeError: module 'seaborn' has no attribute 'lvplot' 目录 解决问题 解决思路 解决方法 解决问题 AttributeError ...
- AttributeError: module ‘seaborn‘ has no attribute ‘histplot‘
问题描述:在用 seaborn 作图时报错:AttributeError: module 'seaborn' has no attribute 'histplot' 这种情况一看就是 Python 库 ...
- AttributeError:module“seaborn” has no attribute “lineplot”
使用seaborn绘图时,出现如下错误: AttributeError: module 'seaborn' has no attribute 'lineplot' 原因: seaborn版本有点老,我 ...
- 【解决错误】AttributeError: partially initialized module ‘seaborn‘ has no attribute ‘distplot‘
1.问题产生 今天在学习seaborn库时,遇到了AttributeError: partially initialized module 'seaborn' has no attribute 'di ...
- 解决: AttributeError: module 'cv2' has no attribute 'SURF'
AttributeError: module 'cv2' has no attribute 'SURF' 遇到该问题时,网友多是建议补个包,即pip install opencv-contrib-py ...
- AttributeError: module ‘tensorflow‘ has no attribute ‘Session‘错误解决
AttributeError: module 'tensorflow' has no attribute 'Session'错误解决 根据网上教程安装tensorflow环境时,最后都会有个测试代码用 ...
- Python 报错解决:AttributeError: 'module' object has no attribute 'SSL_ST_INIT'
早上升级完pip,后报错如下: -> # pip install --upgrade pwntools /usr/local/lib/python2.7/dist-packages/pip/_v ...
- AttributeError: module ‘sys‘ has no attribute ‘maxint‘
AttributeError: module 'sys' has no attribute 'maxint' https://stackoverflow.com/questions/47027354/ ...
最新文章
- 上三角矩阵的特征值分解
- python parser count_Python分析哪座城市小吃最好吃
- 笔记本电脑按开机键没反应怎么办?(先记得长按开机键,大约10秒钟看看可以吗)
- (55)_KPCR, _NT_TIB, _KPRCB
- 点云插值:三维平面参数确定-不共线三点的平面方程
- SageMath安装及使用
- OpenSSL 修复高危的无限循环漏洞
- 成都高新税务推出智能电话语音咨询服务 24小时在线答复
- Hadoop完全分布安装详细过程--------****--------(ubuntu版本)
- RapidXML问题
- 彻底理解js中的闭包
- 浙江省计算机1级考试Excel,浙江省计算机一级考试(2014)Excel试题
- 谷歌翻译是如何获得突破性进展?
- Apache Flink®极简教程: 架构及原理 Stateful Computations over Data Streams
- python 评论分析_python分析评论内容是积极的还是消极的(应用朴素做分词处理及情感识别)...
- 无线路由器怎么显示远端服务器,路由器远端服务器无响应是怎么回事
- 各种数据库中的dual表
- 服务器项目命名规则,云服务器命名规范
- 【申博攻略】一.北交计算机学院学术型博士“申请-考核”攻略(招生简章篇)
- [Java大厂必备面试题] 点滴促就辉煌, 每日三题【Day14】: 数据库8
热门文章
- 基于JDK1.8---HashMap源码分析
- 计算机和网络历史地位,所谓“运营商的文字游戏”,其实是计算机和网络发展的客观历史导致的...
- nginx转发请求_Nginx为什么高效?一文搞明白Nginx核心原理
- ICCV2021旷视研究院入选9篇paper介绍(检测+点云+图像配准等)
- ICRA 2021自动驾驶相关论文汇总 | 科研党看过来,全文干货
- git用法从入门到精通
- “四非”高校南京工业大学,17天内三连击Nature、Science!实为深藏不露
- Nature指数2021亚太区排名:7所中国高校挺进前10!看看有没有你的母校?
- 知名大学4篇学术论文被撤!校方:已做相关取证!
- ArXiv 2020 | 抖音“变身漫画”滤镜背后的技术,难道来自这篇论文?