Skip to content

Instantly share code, notes, and snippets.

@kangeugine
Created August 26, 2017 15:21
Show Gist options
  • Save kangeugine/7deeb3cb7fd29584228bbd3b90efe70e to your computer and use it in GitHub Desktop.
Save kangeugine/7deeb3cb7fd29584228bbd3b90efe70e to your computer and use it in GitHub Desktop.
ARIMA 1
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