Using line and boxplots to visualize time series data
The line chart connects time series data points through a straight line that displays the peaks (high points) and valleys (low points) in the data. The x axis of the line chart typically represents our time intervals, while the y axis represents a variable of interest that we intend to track in relation to time. With the line chart, it is easy to spot trends or changes over time.
On the other hand, the boxplot gives us a sense of the underlying distribution of a dataset through five key metrics. The metrics include minimum, first quartile, median, third quartile, and maximum. You can check out Chapter 4, Performing Univariate Analysis in Python, for more details about the boxplot and its components. When used on time series data, the x axis typically represents our time intervals, while the y axis represents a variable of interest. The time intervals on the x axis are typically summarized time intervals, for example, hourly summarized...