# load and plot dataset from pandas import read_csv from pandas import datetime from matplotlib import pyplot from pandas import DataFrame from pandas import concat from pandas import read_csv from pandas import datetime import pandas as pd from math import sqrt import sklearn from sklearn.metrics import mean_squared_error # load dataset def parser(x): return datetime.strptime('190'+x, '%Y-%m') series = read_csv('case2.csv', header=0, parse_dates=[0], index_col=0, squeeze=True, date_parser=parser) # summarize first few rows print(series.head()) # line plot series.plot() pyplot.show()