I have a pandas data frame with a column that has dates like so:
DATE
01/16/2017
01/17/2017
01/18/2017
01/19/2017
01/20/2017
I need to convert each of those dates to a weekend date that is the date of the Friday of that corresponding week. So add a new column resulting in a data frame that looks like this:
DATE WEEK_ENDING
01/16/2017 01/20/2017
01/17/2017 01/20/2017
01/18/2017 01/20/2017
01/19/2017 01/20/2017
01/20/2017 01/20/2017
Essentially I am looking for a Pandas solution to this question for a date get the friday of the week ending
The format of the date itself is not that important. Is there a built in function that can do this or will I have to write one? Thanks!