I have the following DataFrame
example = {"Time":["01/2021","02/2021","04/2021","05/2021"]}
df = pd.DataFrame( example )
Time
0 01/2021
1 02/2021
2 04/2021
3 05/2021
Column Time is composed by strings.
Each string is composed by week number (from 1 to 52) and Year.
I would like to convert to dd/mm/yyyy
Time Time Converted
0 01/2021 10/01/2021
1 02/2021 17/01/2021
2 04/2021 24/01/2021
3 05/2021 31/01/2021
How can I do that?
How to chose the dd if it should be Monday or Sunday? Like in the following alternative output?
Time Time Converted 0 01/2021 04/01/2021 1 02/2021 11/01/2021 2 04/2021 18/01/2021 3 05/2021 25/01/2021
I tried to find any other question specifically dealing with the week number, but I couldn't find it.
If this is a duplicate please let me know :)