mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-11-17 08:40:56 +00:00
Fix holidays for pandas 1.1.0
This commit is contained in:
parent
5accde4fb5
commit
75ec9dffb1
2 changed files with 2 additions and 2 deletions
|
|
@ -552,7 +552,7 @@ class Prophet(object):
|
||||||
prior_scales[row.holiday] = ps
|
prior_scales[row.holiday] = ps
|
||||||
|
|
||||||
for offset in range(lw, uw + 1):
|
for offset in range(lw, uw + 1):
|
||||||
occurrence = dt + timedelta(days=offset)
|
occurrence = pd.to_datetime(dt + timedelta(days=offset))
|
||||||
try:
|
try:
|
||||||
loc = row_index.get_loc(occurrence)
|
loc = row_index.get_loc(occurrence)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ Cython>=0.22
|
||||||
cmdstanpy==0.9.5
|
cmdstanpy==0.9.5
|
||||||
pystan>=2.14
|
pystan>=2.14
|
||||||
numpy>=1.10.0
|
numpy>=1.10.0
|
||||||
pandas>=0.23.4,<1.1.0
|
pandas>=0.23.4
|
||||||
matplotlib>=2.0.0
|
matplotlib>=2.0.0
|
||||||
LunarCalendar>=0.0.9
|
LunarCalendar>=0.0.9
|
||||||
convertdate>=2.1.2
|
convertdate>=2.1.2
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue