We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 315b549 commit 98c1fe0Copy full SHA for 98c1fe0
pandas/_libs/tslibs/offsets.pyx
@@ -4423,6 +4423,8 @@ cdef class CustomBusinessDay(BusinessDay):
4423
offset=timedelta(0),
4424
):
4425
BusinessDay.__init__(self, n, normalize, offset)
4426
+ if (calendar is not None) and not isinstance(calendar, np.busdaycalendar):
4427
+ warnings.warn("Warning: `calendar` is expected to be either an instance of `np.busdaycalendar` or `None`.")
4428
self._init_custom(weekmask, holidays, calendar)
4429
4430
cpdef __setstate__(self, state):
0 commit comments