Pre-Requisites to Understanding this Article
What's Regression and what does this have to do with Forecasting in Excel?
So if I can do this in Excel, why bother with Python and Pandas? š¼
Retail Sales Forecast Analysis šļø
Step One - Import your data š§āāļø
import pandas as pd
import numpy as np
dataframe = pd.read_csv("/work/Store_Sales.csv")
dataframe
Step Two - Reshape the data in the format of Prophet's Argument Requirements š§āāļøš§āāļø
dataframe.columns=['ds','y']
m = Prophet()
m.fit(dataframe)
future = m.make_future_dataframe(periods=90)
forecast = m.predict(future)
fc = forecast[['ds','yhat','yhat_lower','yhat_upper']]