def plot_ts(ts, lab = ''): ts.plot() plt.title('Time series plot of ' + lab) plt.ylabel('Value') plt.xlabel('Date')