Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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')
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #pandas #calculate #day #months #dateoffset
ADD COMMENT
Topic
Name
8+1 =