Hi, The numpy.busday_count contains a bug where the number of days returned for a call np.busday_count(begin_date, end_date) can be incorrect if end_date is before begin_data in time. The problem has been around since 2011.
There are two possible ways to solve this: 1. Fix the bug. This is proposed in https://github.com/numpy/numpy/pull/23229 2. Update the documentation and accept the behaviour The issue has been discussed in the triage meeting and the proposal is to fix the bug ( https://github.com/numpy/numpy/issues/23197#issuecomment-1460610260). Since this modifies the behaviour of a method that has been around for a long time, we wanted to check whether there are any objections or concerns. - Are there objections to fixing the bug and thereby modifying the behaviour? - Would there be objections to deprecating the busday functionality and moving it to a separate package (e.g. numpy financials) With kind regards, Pieter Eendebak
_______________________________________________ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: arch...@mail-archive.com