I have dataframe that called df
:
number date
1 2012-07-01
2 2012-08-01
3 2012-09-01
4 2012-10-01
5 2012-11-01
I need to subtract 3 month from every date.
When I will run df
it will give me that data frame:
number date
1 2012-04-01
2 2012-05-01
3 2012-06-01
4 2012-07-01
5 2012-08-01
What code do I need to write?