I'm trying to define a custom week for a dataframe.
I have a dataframe with timestamps. I've read the questions on here regarding isocalendar. While it does the job. It's not what I want.
I'm trying to define the weeks from Friday to Thrusday.
For example:
Friday 2nd Jan 2015 would be the first day of the week.
Thursday 8th Jan 2015 would be the last day of the week.
And this would be week 1.
Is there a way to set a custom weekday? so when I access the the datetime
library, I get the result that I expect.
df['Week_Number'] = df['Date'].dt.week