Timothy Helton
The original dataset for this project is provided by the U.S. Centers for Disease Control and Prevention (CDC).
License: Open Database License (ODbL)
NOTE:
This notebook uses code found in the
k2datascience.chronic_disease module.
To execute all the cells do one of the following items:
In [1]:
import matplotlib.dates as mdates
import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
from k2datascience import chronic_disease
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"
%matplotlib inline
In [2]:
cdi = chronic_disease.CDI()
[print(x) for x in chronic_disease.data_dtype.keys()];
In [3]:
cdi.load_data()
cdi.data.shape
cdi.data.ix[0]
Out[3]:
Out[3]:
In [4]:
cdi.get_diseases()
cdi.diseases
cdi.plot_diseases()
Out[4]: