A business day calendar object that efficiently stores information defining business days for the business day-related functions.
New in version 1.7.0.
Parameters : | weekmask : str or array_like of bool, optional
holidays : array_like of datetime64[D], optional
|
---|---|
Returns : | out : busdaycalendar
|
See also
Examples
>>> # Some important days in July
... bdd = np.busdaycalendar(
... holidays=['2011-07-01', '2011-07-04', '2011-07-17'])
>>> # Default is Monday to Friday weekdays
... bdd.weekmask
array([ True, True, True, True, True, False, False], dtype='bool')
>>> # Any holidays already on the weekend are removed
... bdd.holidays
array(['2011-07-01', '2011-07-04'], dtype='datetime64[D]')
Attributes
weekmask | |
holidays |