From 4d69eaf93252cf34e707486255933eb4c1353cc5 Mon Sep 17 00:00:00 2001 From: "Dr. Kashif Rasul" Date: Sun, 22 Dec 2019 15:40:37 +0100 Subject: [PATCH] bigger MAX_WINDOW --- pts/feature/holiday.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pts/feature/holiday.py b/pts/feature/holiday.py index 142617d..1bd715d 100644 --- a/pts/feature/holiday.py +++ b/pts/feature/holiday.py @@ -30,9 +30,9 @@ from pandas.tseries.holiday import ( ) from pandas.tseries.offsets import DateOffset, Day, Easter -MAX_WINDOW = ( - 183 # This is 183 to cover half a year (in both directions), also for leap years -) +# This is 183 to cover half a year (in both directions), also for leap years +# and half a week to cover holidays offset by a week +MAX_WINDOW = 183 + 4 def distance_to_holiday(holiday):