Graph Quarterly Data with Python
A company’s number of sales per quarter or quarterly income statements are just 2 examples of quarterly data.
In this article I will show you how to visualize quarterly data by making graphs in Python. I will start with a simple example and work up to more complex situations. All so that you can learn how to tackle the difficulties you may encounter when making quarterly data graphs.
1. Installing the data visualization package matplotlib
One of the most well known Python packages to make data visualizations is the matplotlib package. In this article I will also use that package. It can be installed with the following command: pip install matplotlib
.
To learn more about packages and how to install them you can read this short article I wrote:
2. Graphing quarterly data of one year
Suppose we have a list of the number of sales for each of the 4 quarters of 2022: sales_2022 = [7,46,93,63]
.