Analyze Comparisons

Break down the components of analyzing comparisons of data.

Let's start by answering the final question from our initial EDA:

What do yearly trends in population and GDP per capita, and correlations between life expectancy, population, and GDP per capita, look like for a specific country/continent?

There's a lot to unpack here, so let's handle a piece of this question at a time.

Comparisons in yearly trends

First, let's take a look at comparisons in yearly trends, selecting three random countries: 

  1. The United States

  2. India

  3. Austria

We'll use indexing operations to create the US subset here, and plot three lines corresponding to population over time on the same plot.

Get hands-on with 1200+ tech skills courses.