The U.S. Pollution Map


In [1]:
import pandas as pd

df = pd.read_csv("../data/pollution_us_2000_2016.csv")

In [2]:
from os import path
import sys
sys.path.append(path.abspath('../tests'))

Pollution map for specific pollutant, year and index


In [3]:
source = 'CO' # options: NO2, O3, SO2 and CO
year = '2008' # options: 2000 - 2016
option = 'Mean' # options: Mean, AQI, 1st Max Value

from pollution_map import pollution_map 
fig1 = pollution_map(df, source, year, option)


Pollution changes over the years (comparing with 2016)


In [4]:
from pollution_change import pollution_change
fig2 = pollution_change(df, source, year, option)



In [ ]: