KevinFasusi/supplychainpy

Having trouble with simple_exponential_smoothing_forecast

tmo2021 opened this issue · 1 comments

I tried to reproduce your code exactly from the third Jupyter Notebook example file that read:

ses_df = simple_exponential_smoothing_forecast(ds=row_ds[1:12], length=12, smoothing_level_constant=0.5)
print(ses_df)

This gave me TypeError: simple_exponential_smoothing_forecast() missing 1 required positional argument: 'demand'.

I tried guessing and specifying what demand was with multiple numbers and variables but when I did so it just printed the word "None"

  • Thanks a ton for the package
zenz commented

just change ds=row_ds[1:12] to demand=row_ds[1:12] or put row_ds[1:12] for first parameter.