MAINT Change relativedelta to Timedelta as pandas 0.17.0 deprecated relativedelta.

This commit is contained in:
Thomas Wiecki
2015-10-16 15:53:11 +02:00
parent 85c49afe4c
commit d21aec17e2
+1 -1
View File
@@ -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):