pandas.tseries.offsets.WeekOfMonth¶
-
class
pandas.tseries.offsets.
WeekOfMonth
(n=1, normalize=False, week=0, weekday=0)[source]¶ Describes monthly dates like “the Tuesday of the 2nd week of each month”.
- Parameters
- nint
- weekint {0, 1, 2, 3, …}, default 0
A specific integer for the week of the month. e.g. 0 is 1st week of month, 1 is the 2nd week, etc.
- weekdayint {0, 1, …, 6}, default 0
A specific integer for the day of the week.
0 is Monday
1 is Tuesday
2 is Wednesday
3 is Thursday
4 is Friday
5 is Saturday
6 is Sunday.
Attributes
Returns a copy of the calling offset object with n=1 and all other attributes equal.
freqstr
kwds
name
nanos
rule_code
Methods
apply_index
(self, other)Vectorized apply of DateOffset to DatetimeIndex, raises NotImplentedError for offsets without a vectorized implementation.
rollback
(self, dt)Roll provided date backward to next offset only if not on offset.
rollforward
(self, dt)Roll provided date forward to next offset only if not on offset.
__call__
apply
copy
isAnchored
is_anchored
is_on_offset
onOffset