上QQ阅读APP看书,第一时间看更新
Getting ready
We will use the Google Stock Price data for plotting time series line plot. We have the data (date and daily closing price, separated by commas) in a .csv file without a header, so we will use the pandas library to read it and pass it on to the matplotlib.pyplot function to plot the graph.
Let's now import required libraries with the following code:
import matplotlib.pyplot as plt
import pandas as pd