Skip to content
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

Merged
merged 16 commits into from
Aug 18, 2022

Conversation

mroeschke
Copy link
Member

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)

@mroeschke mroeschke added the Interval Interval data type label Aug 17, 2022
@mroeschke mroeschke added this to the 1.5 milestone Aug 17, 2022
@mroeschke mroeschke mentioned this pull request Aug 17, 2022
Copy link
Member

@phofl phofl left a 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

@phofl phofl self-requested a review August 17, 2022 07:38
@@ -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.
Copy link
Member

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?

Copy link
Member Author

@mroeschke mroeschke Aug 17, 2022

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.

Copy link
Member

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

Copy link
Member Author

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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

@phofl
Copy link
Member

phofl commented Aug 17, 2022

Looks good, but impossible to see everything...

@mroeschke mroeschke merged commit 252ae05 into pandas-dev:main Aug 18, 2022
@mroeschke mroeschke deleted the revert/interval/inclusive branch August 18, 2022 15:41
noatamir pushed a commit to noatamir/pandas that referenced this pull request Nov 9, 2022
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Interval Interval data type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants