Eg1. Suppose I have a day 4/30/07 .Then I need to get 4/27/07.
Eg2. Suppose I have a day 6/29/07 .Then I need to get 6/22/07.
There are plenty of options in pandas.tseries.offsets This one is for previous week friday.
from pandas.tseries.offsets import Week f_dates = required_df.index - Week(1, weekday=4)