def plot_ts(ts, title): ts.plot() plt.title(title) plt.xlabel('Date') plt.ylabel('Value') plot_ts(ts_series_ar2, title = 'Plot of AR(2) process time series')