Search
 
SCRIPT & CODE EXAMPLE
 

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')
Comment

PREVIOUS NEXT
Code Example
Python :: qfiledialog python save 
Python :: python string isdecimal 
Python :: finding factorial of a number in python 
Python :: django set session variable 
Python :: sum group by pandas and create new column 
Python :: python bit shift by 3 
Python :: python while loop 
Python :: get dictionary value python 
Python :: numpy weighted average 
Python :: groupby and sort python 
Python :: how to cerate a bar chart seaborn 
Python :: print multiple lines python 
Python :: isinstance python 
Python :: queue python 
Python :: pythob password generator 
Python :: train test split sklearn 
Python :: webscrapping with python 
Python :: add place in certain index python string 
Python :: plot pil image colab 
Python :: how to bulk update in mongodb using python 
Python :: how to convert pdf to word using python 
Python :: opencv google colab 
Python :: check regex in python 
Python :: cv2 copy image 
Python :: unique values in dataframe column count 
Python :: colors in scatter plot python 
Python :: randomly shuffle pandas dataframe 
Python :: Python program to draw hexagon 
Python :: reverse element in a list in python 3 
Python :: sort rows by values dataframe 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =