python数据分析与挖掘(十八)--- Pandas画图

Python教程网 >>:www.python88.cn

1 pandas.DataFrame.plot

  • DataFrame.plot(x=Noney=Nonekind='line')

    • x : 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/pandas-docs/stable/generated/pandas.DataFrame.plot.html?highlight=plot#pandas.DataFrame.plot

2 pandas.Series.plot

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

Python爬虫人工智能大数据

猜你喜欢

转载自blog.csdn.net/weixin_41666747/article/details/86666199