-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Negative freq in date_range produces values out of start and endpoints #56832
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
pre-commit.ci autofix |
for more information, see https://pre-commit.ci
thanks, taking a look next week - could you fix up the conflicts please? |
pre-commit.ci autofix |
Awaiting #56873 to fix the test failure in:
|
cd52274
to
7281475
Compare
whoops I didn't mean to delete that, will try to rectify |
This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this. |
this is probably fine, I just haven't had a chance yet to check how (in?)consistently negative ranges are currently handled. I'm aiming to get this in by 3.0 if it's ready |
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 you're right, this is the fix
could you add a whatsnew note for 3.0 please?
could you also update the date_range
docs please? they currently don't account for negative frequencies, they just say
Returns the range of equally spaced time points (where the difference between any two adjacent points is specified by the given frequency) such that they all satisfy start <[=] x <[=] end,
If we're changing negative freq behaviour, we need to be very explicit on what the rules are
pre-commit.ci autofix |
for more information, see https://pre-commit.ci
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.
thanks @jrmylow , CI failure is unrelated
Co-authored-by: Matthew Roeschke <[email protected]>
Thanks @jrmylow |
…points (pandas-dev#56832) * pandas-dev#56147 negative offset and year end interaction * pandas-dev#56147 tests * documentation * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fixing typing/pylint to mirror other branch * moved note to Datetimelike * documentation re-merge * whatsnew update * updated date_range docstring * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * reformatted docstring * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update doc/source/whatsnew/v3.0.0.rst Co-authored-by: Matthew Roeschke <[email protected]> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Matthew Roeschke <[email protected]>
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.