Furthering the analysis of the top income groups of the US
So far in this chapter, we have focused on the analysis of income percentages over time. Next, we will continue our analysis by taking a look at some of the other interesting figures that we have in our dataset, specifically the actual income figures and income categories that comprise these figures.
Getting ready
If you've completed the previous recipe, Analyzing and visualizing the top income data of the US, you should have everything you need to continue.
How to do it...
With the following steps, we will dive deeper into the dataset and examine additional income figures:
- The dataset also contains the average incomes by year of the different groups. Let's graph these and see how they have changed over time, relative to each other:
In [32]: def average_incomes(source): ...: """ ...: Compares percentage average incomes ...: """ ...: columns = ( ...: "Top 10% average income", ...: "Top 5% average income",...