Importing and exploring the world's top incomes dataset
Once you have downloaded and installed everything in the previous recipe, you can read the dataset with Python and then start doing some preliminary analysis to get a sense of what the data you have looks like.
The dataset that we'll explore in this chapter was created by Alvaredo, Facundo, Anthony B. Atkinson, Thomas Piketty, and Emmanuel Saez, The World Top Incomes Database, http://topincomes.g-mond.parisschoolofeconomics.eu/, 10/12/2013. It contains global information about the highest incomes per country for approximately the past 100 years, gleaned from tax records.
Getting ready
If you've completed the previous recipe, Preparing for the analysis of top incomes, you should have everything you need to continue.
How to do it...
Let's use the following sequence of steps to import the data and start our exploration of this dataset in Python:
- With the following snippet, we will create a Python list in memory that contains dictionaries of...