Fix holidays for pandas 1.1.0

This commit is contained in:
Ben Letham 2020-08-14 11:03:04 -07:00
parent 5accde4fb5
commit 75ec9dffb1
2 changed files with 2 additions and 2 deletions

View file

@ -552,7 +552,7 @@ class Prophet(object):
prior_scales[row.holiday] = ps
for offset in range(lw, uw + 1):
occurrence = dt + timedelta(days=offset)
occurrence = pd.to_datetime(dt + timedelta(days=offset))
try:
loc = row_index.get_loc(occurrence)
except KeyError:

View file

@ -2,7 +2,7 @@ Cython>=0.22
cmdstanpy==0.9.5
pystan>=2.14
numpy>=1.10.0
pandas>=0.23.4,<1.1.0
pandas>=0.23.4
matplotlib>=2.0.0
LunarCalendar>=0.0.9
convertdate>=2.1.2