English (United States) subtitles

← Plotting in Python - Intro to Data Science

Get Embed Code
5 Languages

Showing Revision 1 created 08/27/2016 by Udacity Robot.

  1. Lets assume that we have a csv file called
  2. hr_year.csv, which contains two columns, yearID and HR. YearID
  3. is the year and HR is the total number
  4. of home runs. With these two columns, the csv file
  5. contains the number of home runs hit in Major
  6. League Baseball every year. Can you write a function line
  7. plot that creates a pandas data frame from this
  8. csv file and then creates a chart with points connected
  9. by lines, both colored red, showing the number
  10. of home runs by year? You want to do this
  11. using the ggplot library with the syntax
  12. that we just discussed. Your code should go here.