且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Pandas画图| 学习笔记

更新时间:2022-09-07 23:22:50

开发者学堂课程【Python 数据分析库 Pandas 快速入门Pandas画图学习笔记,与课程紧密联系,让用户快速学习知识。

课程地址https://developer.aliyun.com/learning/course/607/detail/8855


Pandas画图


内容介绍

一、学习目标

二、pandas.DataFrame.plot

三、pandas.Series.plot fur


一、学习目标

1.目标

了解 DataFrame 的画图函数

了解 Series 的画图函数

2.应用

股票每日数据的统计


二、pandas.DataFrame.plot

DataFrame.plot (x=None, y=None, kind='line‘)

×: label or position, default None

y : label, position or list of label, positions, default None

Allows plotting of one column versus another

kind : str

‘line' : line plot (default)  

‘bar' : vertical bar plot

'barh' : horizontal bar plot

‘hist' : histogram  

‘pie' : pie plot

'scatter’ : scatter plot  

更多参数细节:https://pandas.pydata.org/pandasdocs/stable/generated/pandas.DataFrame.plot.html?  

highlight=plot#pandas.DataFrame.plot


三、pandas.Series.plot fur

更多参数细节:https://pandas.pydata.org/pandasdocs/stable/generated/pandas.Series.plot.html? highlight=plot#pandas.Series.plot