<jupyter_start><jupyter_text>fbprophet<jupyter_code>df_grouped.reset_index(inplace=True)
df_grouped.head()
from fbprophet import Prophet

df_grouped = df_grouped.rename(columns={'date': 'ds', 'sales': 'y'})
df_grouped_model = Prophet(interval_width=0.95)
df_grouped_model.fit(df_grouped)


df_grouped_forecast = df_grouped_model.make_future_dataframe(periods=156,freq='w')
df_grouped_forecast = df_grouped_model.predict(df_grouped_forecast)


plt.figure(figsize=(18, 6))
df_grouped_model.plot(df_grouped_forecast, xlabel = 'Date', ylabel = 'sales')
plt.title('Sales');<jupyter_output>INFO:fbprophet.forecaster:Disabling daily seasonality. Run prophet with daily_seasonality=True to override this.
{'fraction_non_alphanumeric': 0.1206896551724138, 'fraction_numerical': 0.01293103448275862, 'mean_word_length': 10.813559322033898, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '228284', 'license': 'MIT', 'n_tokens_mistral': 279, 'n_tokens_neox': 263, 'n_words': 35, 'path': '04-machine-learning-tabular-panel-timeseries/01 - Auto Correlated Variables/possivel_má_solucao.ipynb', 'repo_name': 'sn3fru/datascience_course', 'size': '696'}