KevinFasusi / supplychainpy

Supplychainpy is a Python library for supply chain analysis, modelling and simulation. The library assists a workflow that is reliant on Excel and VBA.
http://www.supplychainpy.org/
BSD 3-Clause "New" or "Revised" License
290 stars 100 forks source link

Having trouble with simple_exponential_smoothing_forecast #71

Open tmo2021 opened 4 years ago

tmo2021 commented 4 years ago

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"

zenz commented 4 years ago

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