A project might set a specific option to bizdays.
But in another part, it needs to change this option.
This should be done locally with context managers.
from bizdays import set_option, Calendar, option
set_option("mode", "pandas")
cal = Calendar.load("B3")
with bizdays.option("mode", "datetime"):
cal.bizdays(date1, date2)
A project might set a specific option to bizdays. But in another part, it needs to change this option. This should be done locally with context managers.