pandas.tseries.offsets.CustomBusinessMonthBegin¶
-
class
pandas.tseries.offsets.CustomBusinessMonthBegin(n=1, normalize=False, weekmask='Mon Tue Wed Thu Fri', holidays=None, calendar=None, offset=datetime.timedelta(0))[source]¶ DateOffset subclass representing custom business month(s).
Increments between beginning of month dates.
Parameters: n : int, default 1
The number of months represented.
normalize : bool, default False
Normalize start/end dates to midnight before generating date range.
weekmask : str, Default ‘Mon Tue Wed Thu Fri’
Weekmask of valid business days, passed to
numpy.busdaycalendar.holidays : list
List/array of dates to exclude from the set of valid business days, passed to
numpy.busdaycalendar.calendar : pd.HolidayCalendar or np.busdaycalendar
Calendar to integrate.
offset : timedelta, default timedelta(0)
Time offset to apply.
Attributes
baseReturns a copy of the calling offset object with n=1 and all other attributes equal. kwdsnamenanosoffsetAlias for self._offset. rule_codeMethods
__call__apply(other)apply_indexVectorized apply of DateOffset to DatetimeIndex, raises NotImplentedError for offsets without a vectorized implementation. copyisAnchored()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.