plot_ts(CBE.loc[:'1989-12-31', 'resids'], title = 'Residual time series of log electric production') dist_ts(CBE.loc[:'1989-12-31', 'resids'], 'n residual of trend and seasonal model')