mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-12 20:41:12 +08:00
MAINT Change relativedelta to Timedelta as pandas 0.17.0 deprecated relativedelta.
This commit is contained in:
@@ -23,7 +23,7 @@ start = pd.Timestamp('1990-01-01', tz='UTC')
|
||||
end_base = pd.Timestamp('today', tz='UTC')
|
||||
# Give an aggressive buffer for logic that needs to use the next trading
|
||||
# day or minute.
|
||||
end = end_base + pd.datetools.relativedelta(years=1)
|
||||
end = end_base + pd.Timedelta(days=365)
|
||||
|
||||
|
||||
def canonicalize_datetime(dt):
|
||||
|
||||
Reference in New Issue
Block a user