Calculates which of the given dates are valid days, and which are not.
New in version 1.7.0.
Parameters : | dates : array_like of datetime64[D]
weekmask : str or array_like of bool, optional
holidays : array_like of datetime64[D], optional
busdaycal : busdaycalendar, optional
out : array of bool, optional
|
---|---|
Returns : | out : array of bool
|
See also
Examples
>>> # The weekdays are Friday, Saturday, and Monday
... np.is_busday(['2011-07-01', '2011-07-02', '2011-07-18'],
... holidays=['2011-07-01', '2011-07-04', '2011-07-17'])
array([False, False, True], dtype='bool')