-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Bug in date_range with semi-open interval and freq='B'? #6673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
related / dupe of #5637 See the comment here, I think this is somewhat arbitrary because it first needs to move to a valid business day. I think this should be more deterministic. If you can come up with some 'rules' then I think could be straightforward. |
date_range
with semi-open interval and freq='B'?
This looks fixed on master. Might need a test to confirm this behavior |
I am willing to add a test in a PR for my first issue ! |
closed by #22095 |
#5637 has some examples as well
When the end date in
date_range
is not a valid business day it appears thatdate_range
first sets it to a valid date before deciding whether to return the last date depending on whether the interval is closed or open on the right. This results in the date range being incorrectly truncated when the interval is open-right - e.g.The text was updated successfully, but these errors were encountered: