Mauna Loa CO2 form all over the book


In [2]:
import matplotlib.pyplot as plt
import numpy as np
from scipy import stats
import seaborn as sns
import pandas as pd

%matplotlib inline
sns.set(font_scale=1.5)

Load data from chaper 1 page 10


In [14]:
data = pd.read_csv('https://raw.githubusercontent.com/PacktPublishing/Bayesian-Analysis-with-Python/master/Chapter%201/mauna_loa_CO2%20(1).csv', 
                  header=None, 
                   index_col=0, names = ['CO2'])
data.head()


Out[14]:
CO2
1959.000 315.42
1959.083 316.31
1959.167 316.50
1959.250 317.56
1959.333 318.13

In [18]:
data.plot(legend=False, figsize=(8,5))
plt.ylabel('CO$_2$ [ppmv]' )
plt.tight_layout()



In [ ]:


In [ ]:


In [6]:
pd.read_csv?

In [ ]: