is_busday(dates, weekmask='1111100', holidays=None, busdaycal=None, out=None)
The array of dates to process.
A seven-element array indicating which of Monday through Sunday are valid days. May be specified as a length-seven list or array, like [1,1,1,1,1,0,0]; a length-seven string, like '1111100'; or a string like "Mon Tue Wed Thu Fri", made up of 3-character abbreviations for weekdays, optionally separated by white space. Valid abbreviations are: Mon Tue Wed Thu Fri Sat Sun
An array of dates to consider as invalid dates. They may be specified in any order, and NaT (not-a-time) dates are ignored. This list is saved in a normalized form that is suited for fast calculations of valid days.
A busdaycalendar
object which specifies the valid days. If this parameter is provided, neither weekmask nor holidays may be provided.
If provided, this array is filled with the result.
An array with the same shape as dates
, containing True for each valid day, and False for each invalid day.
Calculates which of the given dates are valid days, and which are not.
busday_count
Counts how many valid days are in a half-open date range.
busday_offset
Applies an offset counted in valid days.
busdaycalendar
An object that specifies a custom set of valid days.
>>> # The weekdays are Friday, Saturday, and MondaySee :
... 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])
The following pages refer to to this document either explicitly or contain code examples using this.
numpy.core._multiarray_umath.busday_count
numpy.busdaycalendar
numpy.core._multiarray_umath.busday_offset
numpy.busday_offset
numpy.busday_count
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them