pandas.tseries.offsets.BusinessHour¶
-
class
pandas.tseries.offsets.BusinessHour(n=1, normalize=False, start='09:00', end='17:00', offset=datetime.timedelta(0))[source]¶ DateOffset subclass representing possibly n business hours.
New in version 0.16.1.
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.