Answers for "pandas calculate same day 3 months ago dateoffset"

0

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')
Posted by: Guest on April-07-2021

Python Answers by Framework

Browse Popular Code Answers by Language