major overhaul of forecast pipeline #21
@ -255,8 +255,8 @@ def _process_sales(
|
|||||||
# print("dates: ", dates)
|
# print("dates: ", dates)
|
||||||
# ?? --- new: use monthly basis for time windows
|
# ?? --- new: use monthly basis for time windows
|
||||||
# baseline: 3 years - 36 months
|
# baseline: 3 years - 36 months
|
||||||
# starting_date = datetime.datetime.now() - relativedelta(months=36)
|
starting_date = datetime.datetime.now() - relativedelta(months=36)
|
||||||
starting_date = dates.max() - relativedelta(months=36)
|
# starting_date = dates.max() - relativedelta(months=36)
|
||||||
start_index = next(
|
start_index = next(
|
||||||
(i for i, date in enumerate(dates) if date >= starting_date), len(dates) - 1
|
(i for i, date in enumerate(dates) if date >= starting_date), len(dates) - 1
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user