In [1]:
%matplotlib inline

import numpy as np
import pandas as pd

import matplotlib.pyplot as plt
import seaborn as sns

sns.set_context("poster")
sns.set_style("ticks")

In [2]:
# Data Source
df = pd.read_csv('https://query.data.world/s/3qum2c3mvf9f6sbzecxu8wpa4')

In [3]:
df.head()


Out[3]:
Year under30 30_39 40_49 50_59 60+ unknown
0 2004 146.0 114.0 49.2 30.9 6.1 0.9
1 2005 161.0 129.0 55.6 38.3 8.2 0.7
2 2006 194.0 154.0 69.4 47.9 13.2 0.3
3 2007 217.0 171.0 81.7 55.4 15.8 0.4
4 2008 248.0 202.0 95.7 67.1 20.0 0.5

In [4]:
df.shape


Out[4]:
(11, 7)

In [5]:
df


Out[5]:
Year under30 30_39 40_49 50_59 60+ unknown
0 2004 146.0 114.0 49.2 30.9 6.1 0.90
1 2005 161.0 129.0 55.6 38.3 8.2 0.70
2 2006 194.0 154.0 69.4 47.9 13.2 0.30
3 2007 217.0 171.0 81.7 55.4 15.8 0.40
4 2008 248.0 202.0 95.7 67.1 20.0 0.50
5 2009 273.0 229.0 109.0 77.7 25.0 0.70
6 2010 299.0 257.0 127.0 90.5 29.1 0.90
7 2011 312.0 281.0 140.0 97.2 35.2 0.90
8 2012 320.0 320.0 163.0 113.0 42.6 1.30
9 2013 356.0 354.0 184.0 126.0 49.4 1.60
10 2014 369.0 383.0 208.0 136.0 58.0 1.83

In [6]:
df.plot(x="Year")
plt.yscale("log")



In [ ]: