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

ParameterTypeDescription
calBusinessCalendar

The Java BusinessCalendar to convert to a numpy.busdaycalendar.

include_partial optionalbool

Whether to include partial holidays in the NumPy business day calendar. Default is True.

Returns

A numpy.busdaycalendar from the given Java BusinessCalendar.

Examples

The following example creates a Java BusinessCalendar and converts it to a numpy.busdaycalendar.