below is my code for Prophet. I have to forecast at an item level(latest_sku). Getting an error while trying to fit the model. Below is the code for reference. Not sure what is wrong here pls help.
dataframe
datatype output
latest_sku object
ds datetime64[ns]
y float64
dtype: object
Initialize Prophet model
model = Prophet()
Fit the model on training data
for latest_sku in data['latest_sku'].unique(): sku_data = train[train['latest_sku'] == latest_sku][['ds', 'latest_sku']] sku_data.columns = ['ds', 'y']
throws error
`model.fit(sku_data)
ValueError: Unable to parse string “90188AP01” at position 0
`
Converting latest_sku to string not working.
Prachi C Joshi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.