I have a dataframe like:
data = {'year': [2020, 2020, 2021, 2021], 'week': [52, 53, 1, 2]}
df = pd.DataFrame(data=data)
   year  week
0  2020    52
1  2020    53
2  2021     1
3  2021     2
and I would like to get for each line the Monday (date) of that period so something like:
   year  week  period
0  2020    52  2020-12-21
1  2020    53  2020-12-28
2  2021     1  2021-01-04
3  2021     2  2021-01-11
What is the correct way to do this in pandas?
 
    