1. Learn
  2. /
  3. Courses
  4. /
  5. Intermediate Python for Finance

Exercise

Making a line plot

In this exercise you will be creating a line plot using two weeks of our Alphabet stock data. The data is given as the DataFrame alphabet2w and looks like this:

alphabet2w.head()
             close     volume    open      high      low
date
2019-07-15   1150.51   1058431   1145.34   1150.68   1140.00
2019-07-12   1145.34   1093933   1142.93   1147.50   1138.56
2019-07-11   1144.08   1300529   1146.16   1153.24   1139.53
2019-07-10   1140.91   1535546   1132.32   1142.34   1130.66
2019-07-09   1124.29   1473622   1110.32   1127.86   1107.15

Instructions 1/3

undefined XP
    1
    2
    3
  • Create a line plot of the high price using the date for the x-axis.