![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
J right
这个作者很懒,什么都没留下…
展开
-
Google Colab jupyter notebook matplotlib 可视化显示中文的解决方法
中文显示错误解决方法# 下载--解压--移动字体文件!wget "https://www.wfonts.com/download/data/2014/06/01/simhei/simhei.zip"!unzip "simhei.zip"!rm "simhei.zip"!mv SimHei.ttf /usr/share/fonts/truetype/然后再笔记本代码块中填写如下内容:zhfont = matplotlib.font_manager.FontProperties(fname=原创 2020-11-28 22:05:12 · 1504 阅读 · 0 评论 -
Pandas DataFrame 中出现 SettingWithCopyWarning 解决办法
Pandas DataFrame中出现SettingWithCopyWarning 解决办法对DataFrame中一些行或者列重新赋值的时候,经常出现下面这种情况,SettingWithCopyWarning :A value is trying to be set on a copy of a slice from a DataFrame这种情况经常是因为对数据进行链式造作,如同下面这种...原创 2018-12-20 18:52:47 · 1677 阅读 · 0 评论 -
Pandas属性错误:AttributeError: 'Series' object has no attribute 'reshape' 解决办法
AttributeError: ‘Series’ object has no attribute ‘reshape’ 解决办法Python 3w = [1.0i/k for i in range(k+1)]w = data.describe(percentiles=w)[4:4+k+1]w[0] = w[0](1-1e-10)d2 = pd.cut(data, w, labels=r...原创 2018-12-21 16:28:12 · 20396 阅读 · 1 评论 -
Flask 和 sqlalchemy 创建数据表错误和警告
Flask 和 sqlalchemy 创建数据表错误和警告1.使用 pymysql 出现警告:app.config["SQLALCHEMY_DATABASE_URI"] = "mysql+pymysql://root:root@localhost:3306/dbname"如上配置会出现下面的警告,但是数据都已经创建成功。Warning: (1366, "Incorrect string...原创 2019-01-31 21:39:48 · 544 阅读 · 0 评论