From c1883d839c399bc0b3e2a2e5b2b2012e0365d09a Mon Sep 17 00:00:00 2001 From: "Dr. Kashif Rasul" Date: Wed, 1 Apr 2020 11:23:38 +0200 Subject: [PATCH] fix easter holiday max_window size --- pts/feature/holiday.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pts/feature/holiday.py b/pts/feature/holiday.py index 67ba36a..5d5e69c 100644 --- a/pts/feature/holiday.py +++ b/pts/feature/holiday.py @@ -31,8 +31,8 @@ from pandas.tseries.holiday import ( from pandas.tseries.offsets import DateOffset, Day, Easter # 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 +# plus a week and a half to cover holidays offset by a week e.g. easter etc +MAX_WINDOW = 192 def distance_to_holiday(holiday):