Data Science, Simulation, Deep Dives, Hands On Tutorials, Product Analytics.
pred_new_users_df.rename( columns = {'new_users': 'y', 'cohort': 'ds'}) pred_new_users_df.ds = pd.to_datetime(pred_new_users_df.ds) Now, we are ready to make predictions. As usual in ML, we need to initialise and fit a model. from prophet import Prophet m = Prophet() m.fit(pred_new_users_df) The