上一页 1 ··· 7 8 9 10 11 12 下一页
摘要: plt.figure(num=3.,figsize(8,5),)第一个参数确定figure的编号,第二个参数确定大小 plt.plot(x,y1,linewidth=1.0,linestyle='--') 宽度为1.0 风格为虚线 阅读全文
posted @ 2018-09-03 16:04 BothSavage 阅读(215) 评论(0) 推荐(0) 编辑
摘要: np.linspace 相当于定义一个数据集合,第一个和第二个参数确定范围,第三个参数确定个数 plt.figure()定义一个图形界面 plt.plot(x,y)依照数据画 plt.show()打印 阅读全文
posted @ 2018-09-03 15:56 BothSavage 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 1.是一个非常强大的python画图的一个工具 2.手中有很多的数据,但是不知道如何呈现 matplotlib-》能画出 线图; 散点图; 等高线图; 条形图; 柱状图; 3D 图形, 甚至是图形动画等等. 阅读全文
posted @ 2018-09-03 15:47 BothSavage 阅读(180) 评论(0) 推荐(0) 编辑
摘要: python是很慢的,因为python在执行代码的时候会执行很多复杂的check功能,比如 这个运算看起来很简单,但是在计算机的内部。b要先从一个整数integer转化成一个浮点数float,才能执行a的赋值numpy,他能把简单好用的python和高性能的c语言合并在一起,当调用numpy功能的时 阅读全文
posted @ 2018-09-03 15:44 BothSavage 阅读(2313) 评论(0) 推荐(0) 编辑
摘要: 结合matplotlib作图ax=ax表示在同一个坐标系 阅读全文
posted @ 2018-09-03 15:30 BothSavage 阅读(599) 评论(0) 推荐(0) 编辑
摘要: concat是一种基本的合并方式,但是concat有很多参数可以调整 axis=0是预设值,也就是默认就为vertical合并 ignore_index=true 这个参数用于忽略以前的index,生成新的有序的index join合并 join=‘outer’为预设值,按照column做纵向合并, 阅读全文
posted @ 2018-09-01 21:52 BothSavage 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 出处:https://morvanzhou.github.io/tutorials/data-manipulation/np-pd/3-5-pd-to/ 阅读全文
posted @ 2018-09-01 21:21 BothSavage 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 去掉有空值的行或者列 dateframe.fillna(value= ) 替代控制为value的值 dateframe.isnull() 这个返回的是一个dateframe 里面的只有false,true 当存在na的时候就是true np.any(dateframe.isnull() ) 判断这个 阅读全文
posted @ 2018-09-01 21:09 BothSavage 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 简单的一些赋值,增添行数据和列数据等 出处:https://morvanzhou.github.io/tutorials/data-manipulation/np-pd/3-3-pd-assign/ 阅读全文
posted @ 2018-09-01 20:58 BothSavage 阅读(166) 评论(0) 推荐(0) 编辑
摘要: dates = pd.date_range('20130101', periods=6)df = pd.DataFrame(np.arange(24).reshape((6,4)),index=dates, columns=['A','B','C','D']) 创建了一个dataframe date 阅读全文
posted @ 2018-09-01 20:37 BothSavage 阅读(150) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 下一页