April 2018
Beginner
238 pages
7h 13m
English
pandas is the built-in Python library for dealing with a dataset. matplotlib is the Python library that will plot our data. We use the command %matplotlib inline to have the plot show up in our notebook. Otherwise, Python would generate the graphic in another screen or file.
We build up our dataset using .zip to combine the two columns. We convert the dataset into a data frame.
Now, we can call plot (since we have a data frame available). Note that there are extensive alterations you can make to the plot (such as title or x and y ranges); they are set using additional parameters to the command.