We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abdc777 commit 346cb6fCopy full SHA for 346cb6f
tensorflow_probability/python/sts/holiday_effects.py
@@ -52,8 +52,8 @@ def get_default_holidays(times, country):
52
columns=['geo', 'holiday', 'date'])
53
holidays = holidays.explode('holiday')
54
# Ensure that only holiday dates covered by times are used.
55
- holidays = holidays[(holidays['date'] >= times.min())
56
- & (holidays['date'] <= times.max())]
+ holidays = holidays[(pd.to_datetime(holidays['date']) >= times.min())
+ & (pd.to_datetime(holidays['date']) <= times.max())]
57
holidays = holidays.reset_index(drop=True)
58
holidays['date'] = pd.to_datetime(holidays['date'])
59
holidays = holidays.sort_values('date')
0 commit comments