remove all rows from datframe wgich has data older than 3 months pandas

Solutions on MaxInterview for remove all rows from datframe wgich has data older than 3 months pandas by the best coders in the world

showing results for - "remove all rows from datframe wgich has data older than 3 months pandas"
Julia
21 Apr 2020
1from datetime import date
2from dateutil.relativedelta import relativedelta
3
4#http://stackoverflow.com/questions/546321/how-do-i-calculate-the-date-six-months-from-the-current-date-using-the-datetime
5six_months = date.today() - relativedelta( months = +6 )
6