pandas.tseries.offsets.Week.weekday#

Week.weekday#

Return the day of the week on which the offset is applied.

This is the weekday on which the weekly offset is anchored. The value is an integer representing the day of the week, where Monday is 0 and Sunday is 6, or None if no specific weekday is set.

See also

Week

The weekly offset class.

tseries.offsets.WeekOfMonth

Describes monthly dates like the Tuesday of the 2nd week of each month.

Examples

>>> pd.offsets.Week(weekday=0).weekday
0
>>> pd.offsets.Week(weekday=6).weekday
6
>>> pd.offsets.Week().weekday is None
True