Data Science, Simulation, Deep Dives, Hands On Tutorials, Product Analytics.
m.make_future_dataframe(periods=periods, freq = 'W') forecast = m.predict(future) forecast = forecast[['ds', 'yhat']].rename(columns = {'ds': date_param, 'yhat': param + '_model'}) # join to actual data forecast = forecast.set_index(date_param).join(df, how = 'outer') # visualisation fig =