-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
Revert Interval/IntervalIndex/interval_range.inclusive deprecation #48116
Revert Interval/IntervalIndex/interval_range.inclusive deprecation #48116
Conversation
This reverts commit 2d6e0b2.
This reverts commit 102b3ca.
This reverts commit 5506476.
…das-dev#47637)" This reverts commit f6658ef.
…das-dev#46522)" This reverts commit 7e23a37.
…ange (pandas-dev#46355)" This reverts commit 073b353.
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.
Will have a look in the evening
pandas/_libs/interval.pyx
Outdated
@@ -101,7 +96,7 @@ cdef class IntervalMixin: | |||
Returns | |||
------- | |||
bool | |||
True if the Interval is not closed on the left-side. | |||
True if the Interval is closed on the left-side. |
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 is technically correct with reverting, but the sentence is wrong. I fixed it in a cleanup pr. Should we avoid reverting this specific change or do a follow up?
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.
Feel free to push directly to this PR with those cleanups. Looks like c9d4d3d should successfully revert those PRs in the OP, so we can include the cleanups here too.
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.
Done. I'll open a follow up about cleaning up the typing again. Made this consistent but probably not possible to avoid reverting too
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.
Okay sounds good to follow up with the typing then.
@@ -115,7 +110,7 @@ cdef class IntervalMixin: | |||
Returns | |||
------- | |||
bool | |||
True if the Interval is not closed on the right-side. |
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.
Same here
Looks good, but impossible to see everything... |
…andas-dev#48116) * Revert "Cln tests interval wrt inclusive (pandas-dev#47775)" This reverts commit 2d6e0b2. * Revert "CLN: Rename private variables to inclusive (pandas-dev#47655)" This reverts commit 102b3ca. * Revert "TYP: Improve typing interval inclusive (pandas-dev#47646)" This reverts commit 5506476. * Revert "DEPR: Deprecate set_closed and add set_incluive (pandas-dev#47636)" This reverts commit bd4ff39. * Revert "DEPR: Remove deprecation from private class IntervalTree (pandas-dev#47637)" This reverts commit f6658ef. * Revert "Revert inclusive default change of IntervalDtype (pandas-dev#47367)" This reverts commit d9dd128. * Revert "ENH: consistency of input args for boundaries - Interval (pandas-dev#46522)" This reverts commit 7e23a37. * Revert "ENH: consistency of input args for boundaries - pd.interval_range (pandas-dev#46355)" This reverts commit 073b353. * Fix ArrowIntervalType manually * Remove unused import * Fix doctest and leftover usage * Fix remaining tests * Fix wording in doctoring Co-authored-by: Patrick Hoefler <61934744+phofl@users.noreply.github.com>
xref #47365 (comment)
Reverts these PRs
#47775
#47655
#47646
#47636
#47637
#47367
#46522
#46355
@phofl would appreciate a look since you did a lot of the cleanup post deprecation (and there were tons of merge conflicts reverting along the way)