pandas calculate same day 3 months ago dateoffset code example
Example: pandas calculate same day 3 months ago dateoffset
>>> from pandas.tseries.offsets import DateOffset
>>> ts = pd.Timestamp('2017-01-01 09:10:11')
>>> ts + DateOffset(months=3)
Timestamp('2017-04-01 09:10:11')