I have pandas dataframe in the format 10/2018, 10 represents the week of the year and 2018 the year. How do I convert them to complete date which will be march 5th 2018
week/year Date 10/2018 05-03-2018
I have pandas dataframe in the format 10/2018, 10 represents the week of the year and 2018 the year. How do I convert them to complete date which will be march 5th 2018
Please help me for the same. i have tried multiple option but nothing seems to working
week/year Date
10/2018 05-03-2018
tried this:df_2018_to_2022['TimeDesc'] = pd.to_datetime((df_2018_to_2022['week']-1).astype(str) + "6", format="%Y%U%w")
error:
OutOfBoundsDatetime: Out of bounds nanosecond timestamp: 1020-04-29 00:00:00