还是优达学院的第七课

数据:https://s3.amazonaws.com/content.udacity-data.com/courses/ud359/hr_by_team_year_sf_la.csv

ggplot:

gp = pandas.read_csv(hr_by_team_year_sf_la_csv)
gg =  ggplot(gp,aes('yearID','HR',color = 'teamID')) + geom_point() + geom_line() + ggtitle('Total HRs by Year') + xlab('Year') +ylab('HR')

 

图形:

数据分析python应用到的ggplot(二)

easy learnning:

from ggplot import *
ggplot(aes(x='date',y='beef'),data=meat)+geom_line()+stat_smooth(colour='blue', span=0.2)

图形:
数据分析python应用到的ggplot(二)

 

相关文章:

  • 2021-07-20
  • 2021-09-05
  • 2022-12-23
  • 2022-02-17
  • 2021-10-14
  • 2021-05-20
  • 2021-08-30
  • 2021-05-07
猜你喜欢
  • 2021-11-08
  • 2022-12-23
  • 2022-12-23
  • 2021-12-22
  • 2021-11-30
  • 2021-10-19
相关资源
相似解决方案