Pandas: DateOffset as a Frequency Increment
pandas
’ DateOffset
represents a regular frequency increment:
> from datetime import datetime
> from pandas.tseries.offsets import DateOffset
> d = datetime(2008, 8, 18, 9, 0)
> d + DateOffset(months=4, days=5)
Timestamp('2008-12-23 09:00:00')
Via SO.
Leave a comment