I am trying to combine 2 dataframes, such that only the rows that are in both sets will show in the final.
I first need to care for dates being in the same format. For one of my sets I just have the week beginning date, and the day of the week, and I need to get the actual date from that.
Then, if the date columns match, it needs to merge the observations. We are supposed to use case_when, but I just can't understand how to use it. I think it is something along the lines of, if the dates match, show the observation.
Any help would be appreciated.
from df1:
from df2: