pandas.tseries.offsets.CustomBusinessMonthEnd

class pandas.tseries.offsets.CustomBusinessMonthEnd(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 end of month dates.

Parameters
nint, default 1

The number of months represented.

normalizebool, default False

Normalize start/end dates to midnight before generating date range.

weekmaskstr, Default ‘Mon Tue Wed Thu Fri’

Weekmask of valid business days, passed to numpy.busdaycalendar.

holidayslist

List/array of dates to exclude from the set of valid business days, passed to numpy.busdaycalendar.

calendarpd.HolidayCalendar or np.busdaycalendar

Calendar to integrate.

offsettimedelta, default timedelta(0)

Time offset to apply.

Attributes

base

Returns a copy of the calling offset object with n=1 and all other attributes equal.

cbday_roll

Define default roll function to be called in apply method.

month_roll

Define default roll function to be called in apply method.

offset

Alias for self._offset.

freqstr

kwds

m_offset

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

onOffset

Scroll To Top