-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
fix generate_range function in datetimes.py file #35348
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
Conversation
change some issues be metioned at pandas-dev#35342
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would need a test.
Also I don't think this is an appropriate place for the fix. I imagine the bug is in generate_range
Could you give this PR a more informative title as well? Thanks.
change end time in generate_range function in datetimes file
fix issues be metioned at pandas-dev#35342
@@ -2398,6 +2398,7 @@ def generate_range(start=None, end=None, periods=None, offset=BDay()): | |||
|
|||
elif end and not offset.is_on_offset(end): | |||
end = offset.rollback(end) | |||
end = Timestamp(str(end).split(' ')[0] + ' 23:59:59') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this fix is too specific. The bug probably lies in not checking the end bounds
This PR still needs a test. |
@zky001 can you address #35348 (comment) and #35348 (review) |
See my comment in #35342 on the appropriate fix |
Closing as stale, @zky001 let us know if you'd still like to work on this |
change some issues be metioned at #35342
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff