Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

DEPR: remove Index._is backward_compat_public_numeric_index #50052

Conversation

topper-123
Copy link
Contributor

Removes the attribute Index._is backward_compat_public_numeric_indexand related stuff. This is the last PR before actually removing Int64/UInt64/Float64Index from the code base.

This PR builds on top of #49560 (which is not yet merged), so please exclude the first commit from review of this PR.

I'd also truly appreciate if someone could review #49560, as it's quite a heavy PR with lots of dtype changes.

@topper-123 topper-123 force-pushed the Index._is_backward_compat_public_numeric_index branch 4 times, most recently from fd768f5 to 861ee2e Compare December 5, 2022 11:25
@mroeschke mroeschke added the Deprecate Functionality to remove in pandas label Dec 5, 2022
@topper-123 topper-123 added the Index Related to the Index class or subclasses label Dec 13, 2022
@topper-123 topper-123 added this to the 2.0 milestone Dec 13, 2022
@topper-123 topper-123 force-pushed the Index._is_backward_compat_public_numeric_index branch 2 times, most recently from c9f6171 to 8f846c9 Compare January 11, 2023 22:39
@topper-123 topper-123 force-pushed the Index._is_backward_compat_public_numeric_index branch from 8f846c9 to 5c96039 Compare January 14, 2023 01:01
@topper-123 topper-123 force-pushed the Index._is_backward_compat_public_numeric_index branch from 5c96039 to 21317ba Compare January 14, 2023 23:17
@topper-123
Copy link
Contributor Author

topper-123 commented Jan 15, 2023

Could someone take a review? E.g. @jbrockmendel or @mroeschke?

I've rebased this after #49560 has been merged.

After #49560 and this will have been merged, the removal of Int/Uint/Float64Index should become quite straight forward.

@@ -395,7 +392,6 @@ def _outer_indexer(
# Whether this index is a NumericIndex, but not a Int64Index, Float64Index,
# UInt64Index or RangeIndex. Needed for backwards compat. Remove this attribute and
# associated code in pandas 2.0.
Copy link
Member

Choose a reason for hiding this comment

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

Guessing this comment isn't needed anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah…I’l wait a bit to see if there are more comments coming, then I’ll update.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I’ve updated this now.

Copy link
Member

@jbrockmendel jbrockmendel left a comment

Choose a reason for hiding this comment

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

LGTM

@mroeschke mroeschke merged commit 8849f18 into pandas-dev:main Jan 16, 2023
@mroeschke
Copy link
Member

Thanks @topper-123

@topper-123 topper-123 deleted the Index._is_backward_compat_public_numeric_index branch January 16, 2023 17:55
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Deprecate Functionality to remove in pandas Index Related to the Index class or subclasses
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants