to_np_busdaycalendar
The to_np_busdaycalendar method creates a numpy.busdaycalendar from a Java BusinessCalendar.
Note
Partial holidays in the business calendar are interpreted as full holidays in the numpy business day calendar.
Syntax
Parameters
| Parameter | Type | Description |
|---|---|---|
| cal | BusinessCalendar | The Java |
| include_partial optional | bool | Whether to include partial holidays in the NumPy business day calendar. Default is |
Returns
A numpy.busdaycalendar from the given Java BusinessCalendar.
Examples
The following example creates a Java BusinessCalendar and converts it to a numpy.busdaycalendar.