I am a total newbie in Python and I'm just starting to explore the work handed over to me.
My goal is to determine the week number of the date given. The data is coming from excel and the output will also be shown in the same excel file. My only PROBLEM is that, week 1 of 2021 started on Friday but when I run Python, week 1 starts on January 4, 2021 to January 10, 2021 instead of January 1, 2021 to January 2, 2021. I am currently using this code RPD_week = (pd.to_datetime(dffinal['RPD'], errors='coerce')).dt.strftime("%V")
Please help because I'm literally crying already...