Guest User

Untitled

a guest
Apr 22nd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. def make_comparison_dataframe(historical, forecast):
  2. """Join the history with the forecast.
  3.  
  4. The resulting dataset will contain columns 'yhat', 'yhat_lower', 'yhat_upper' and 'y'.
  5. """
  6. return forecast.set_index('ds')[['yhat', 'yhat_lower', 'yhat_upper']].join(historical.set_index('ds'))
Add Comment
Please, Sign In to add comment