2019年4月13日

数据可视化库Matplotlib 子图

摘要: fig = plt.figure(figsize=(长,宽)) 作图范围 fig.add_subplot(长 ,宽 , 第几个) 如果要画两条则plot两次 要颜色则加c参数,c=" 颜色(英文)" fig,ax = plt.subplots() 指定多个字图的,第一个(fig)为一个画布,第二个( 阅读全文

posted @ 2019-04-13 04:53 李演 阅读(192) 评论(0) 推荐(0)

数据可视化库Matplotlib

摘要: .to_datetime(unrate[ ]) 转换成标准时间格式 plt.plot() 画图的条件 plt.show()显示 plt.xticks(rotation=θ)设置x轴文字的角度 plt.xlabel('x轴文字 ') plt.ylabel(‘y轴文字 ') plt.title('大标题 阅读全文

posted @ 2019-04-13 03:49 李演 阅读(109) 评论(0) 推荐(0)

Pandas学习1-5

摘要: 数据读取 pandas.read_csv('文件名.csv') dtypes() 查看有什么类型 .head() 把读取的数据显示出来(默认显示前五条数据) 想显示多少行就在括号里写几 .tail() 显示后几行,想显示多少行就在括号里写几 .columns 只显示表头(指标) .shape 有多少 阅读全文

posted @ 2019-04-13 01:20 李演 阅读(162) 评论(0) 推荐(0)

导航