(TIL) Pandas: DateOffset as a Frequency Increment

less than 1 minute read

pandasDateOffset represents a regular frequency increment:

> from datetime import datetime
> from pandas.tseries.offsets import *
> d = datetime(2008, 8, 18, 9, 0)
> d + DateOffset(months=4, days=5)
Timestamp('2008-12-23 09:00:00')

Via SO.

Tags: ,

Categories:

Updated:

Comments