Created
August 26, 2017 15:21
-
-
Save kangeugine/7deeb3cb7fd29584228bbd3b90efe70e to your computer and use it in GitHub Desktop.
ARIMA 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import matplotlib.pyplot as plt | |
from datetime import datetime | |
def parser(x): | |
return datetime.strptime('190'+x, '%Y-%m') | |
series = pd.read_csv('data/sales-of-shampoo-over-a-three-ye.csv', \ | |
header=0, \ | |
parse_dates=[0], \ | |
index_col=0, \ | |
squeeze=True, \ | |
date_parser=parser) | |
series.plot() | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment