Do you remember what a continuous variable is and what a discrete variable is? If not, have a quick look at Chapter 1, Exploratory Data Analysis Fundamentals. Back to the main topic, a line chart is used to illustrate the relationship between two or more continuous variables.
We are going to use the matplotlib library and the stock price data to plot time series lines. First of all, let's understand the dataset. We have created a function using the faker Python library to generate the dataset. It is the simplest possible dataset you can imagine, with just two columns. The first column is Date and the second column is Price, indicating the stock price on that date.
Let's generate the dataset by calling the helper method. In addition to this, we have saved the CSV file. You can optionally load the CSV file using the pandas (read_csv) library and proceed with...