Day of the week the period lies in, with Monday=0 and Sunday=6.
If the period frequency is lower than daily (e.g. hourly), and the period spans over multiple days, the day at the start of the period is used.
If the frequency is higher than daily (e.g. monthly), the last day of the period is used.
Day of the week.
Examples
>>> per = pd.Period('2017-12-31 22:00', 'h') >>> per.day_of_week 6
For periods that span over multiple days, the day at the beginning of the period is returned.
>>> per = pd.Period('2017-12-31 22:00', '4h') >>> per.day_of_week 6 >>> per.start_time.day_of_week 6
For periods with a frequency higher than days, the last day of the period is returned.
>>> per = pd.Period('2018-01', 'M') >>> per.day_of_week 2 >>> per.end_time.day_of_week 2
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4