The U.S. Temperature Map


In [1]:
import zipfile
import pandas as pd

import warnings
warnings.filterwarnings('ignore')

from os import path
import sys
sys.path.append(path.abspath('../tests'))

zf = zipfile.ZipFile('../data/GlobalLandTemperatures.zip')
temp = pd.read_csv(zf.open('GlobalLandTemperaturesByState.csv'))

Display the temperature of a specific year for the U.S. states


In [2]:
from temp_map import temp_map

# Specify a year (1900-2013)
year = '1980'

fig1 = temp_map(temp, year)


Temperature change over years (comparing a year with 2013)


In [3]:
from temp_increase import temp_increase

# From which year you'd like to compare (1900-2012)
year = '1980'

fig2 = temp_increase(temp, year)



In [ ]: