I have a dataset with a date column. I want to get the week number associated with each date. I know I can use:
x['date'].isocalendar()[1]
But it gives me the week num with start day = monday. While I need the week to start on a friday.
How do you suggest I go about doing that?
from Get week number with week start day different than monday - Python
No comments:
Post a Comment