Statistics
| Branch: | Revision:

mobicen / varie / spyderTest / autoCorrPart.py @ 9110387b

History | View | Annotate | Download (443 Bytes)

1
import pandas as pd
2
from matplotlib import pyplot
3
import code
4
from pprint import pprint
5
import numpy as np
6
from statsmodels.graphics.tsaplots import plot_acf
7

    
8
df = pd.read_csv('./daily-minimum-temperatures-in-me.csv', names=['date', 'temp'], parse_dates=['date'], skiprows=1)
9
df = df.apply(pd.to_numeric, errors='coerce')
10
#code.interact(local=dict(globals(), **locals()))
11
# df.plot()
12
# pyplot.show()
13
plot_acf(df.temp, lags=1000)
14
pyplot.show()