I have a pandas data frame that does counts by week. The beginning of week is always a Monday and the end is the corresponding Sunday.
Below is my sample data frame:
Week_Start_Date (Mon) Week_End_Date (Sun) Count
2018-08-20 35
2018-08-13 2018-08-19 40
I want to fill the blank cell (date associated with current Sunday) with the Sunday associated with the current week. I want this to be dynamic because the weeks will be changing.
Two questions:
Q1) How do I find the date of the Sunday associated with current week?
Q2) How do I place that date in the missing cell? Positionally, the missing cell will always be 2nd column, 1st row.
I have scoured Google and stackoverflow for some direction but couldn't find anything.