pandas.tseries.offsets.LastWeekOfMonth.week#
- LastWeekOfMonth.week#
Return the week of the month on which this offset applies.
Returns an integer representing the week of the month (0-3) that this offset targets. The week is zero-indexed, where 0 corresponds to the first week of the month.
- Returns:
- int
An integer representing the week of the month (0-3).
See also
tseries.offsets.WeekOfMonthDescribes monthly dates in a specific week.
tseries.offsets.LastWeekOfMonthDescribes monthly dates in last week.
Examples
>>> pd.offsets.WeekOfMonth(week=0, weekday=0).week 0
>>> pd.offsets.WeekOfMonth(week=2, weekday=3).week 2
>>> pd.offsets.LastWeekOfMonth(weekday=0).week -1