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: n : int
week : {0, 1, 2, 3, …}, default 0
0 is 1st week of month, 1 2nd week, etc.
weekday : {0, 1, …, 6}, default 0
0: Mondays 1: Tuesdays 2: Wednesdays 3: Thursdays 4: Fridays 5: Saturdays 6: Sundays
Attributes
base
Returns a copy of the calling offset object with n=1 and all other attributes equal. kwds
name
nanos
rule_code
Methods
__call__
apply
(other)apply_index
Vectorized apply of DateOffset to DatetimeIndex, raises NotImplentedError for offsets without a vectorized implementation. copy
isAnchored
()onOffset
(dt)rollback
(dt)Roll provided date backward to next offset only if not on offset. rollforward
(dt)Roll provided date forward to next offset only if not on offset.