摘要: 我安装的是python 3.7,接下来python -m pip install pyecharts==0.5.11,然后python -m pip install pyecharts-snapshot,运行from pyecharts import Scatter就成功了 阅读全文
posted @ 2019-09-10 18:24 大度看世界 阅读(2961) 评论(0) 推荐(0) 编辑
摘要: df=df.sort_values('日期',ascending = False) 阅读全文
posted @ 2019-08-21 14:07 大度看世界 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 是需要新建一个console新的控制台就可以解决 了 阅读全文
posted @ 2019-08-21 12:14 大度看世界 阅读(120) 评论(0) 推荐(0) 编辑
摘要: df=df.fillna('0') df=df.replace("-", "0") 阅读全文
posted @ 2019-08-19 22:06 大度看世界 阅读(456) 评论(0) 推荐(0) 编辑
摘要: 字符串根据分隔符切割后输出,一下面 输出结果如下: 阅读全文
posted @ 2019-08-19 15:56 大度看世界 阅读(756) 评论(0) 推荐(0) 编辑
摘要: df.['字段'].replace("0.", "0") 当字符串里面有不是整型数字 有小数的时候转化补了 整型,得删除 或者替换 阅读全文
posted @ 2019-08-19 15:31 大度看世界 阅读(222) 评论(0) 推荐(0) 编辑
摘要: df.dtypes 知道类型之后你才能进行对他进行帅选,数据处理,不然就会丢失字段 阅读全文
posted @ 2019-08-19 15:06 大度看世界 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 需要重新关系之后重新打开就可以了,这个遇到过很多词,必须重新打开jup 阅读全文
posted @ 2019-08-19 14:46 大度看世界 阅读(118) 评论(0) 推荐(0) 编辑
摘要: Matplotlib中文问题 plt.rcParams['font.sans-serif'] = ['SimHei'] # 解决中文显示问题-设置字体为黑体plt.rcParams['axes.unicode_minus'] = False # 解决保存图像是负号'-'显示为方块的问题 Seabor 阅读全文
posted @ 2019-08-18 20:32 大度看世界 阅读(391) 评论(0) 推荐(0) 编辑
摘要: 这样可以解决import pandas as pd pd.plotting.scatter_matrix(iris_df, alpha=0.2, figsize=(10, 10)) 这样不行 from pandas.plotting import scatter_matrix scatter_mat 阅读全文
posted @ 2019-08-18 14:52 大度看世界 阅读(2207) 评论(0) 推荐(1) 编辑