Data Science, Simulation, Deep Dives, Hands On Tutorials, Product Analytics.
make_prediction(tmp_df, param, param_name = '', periods = 52): # pre-processing df = tmp_df.copy() date_param = df.index.name df.index = pd.to_datetime(df.index) train_df = df.reset_index().rename(columns = {date_param: 'ds', param: 'y'}) # model m = Prophet() m.fit(train_df) future =