Skip to content

DEPR: Remove ABC(Int|Uint|Float)64Index #50775

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

Merged
merged 3 commits into from
Jan 18, 2023

Conversation

topper-123
Copy link
Contributor

Progress towards #42717.

@topper-123 topper-123 force-pushed the remove_ABCInt/UInt/Float64Index branch from f008912 to 4f13011 Compare January 16, 2023 14:43
@topper-123 topper-123 changed the title DEPR: Remove abc(int|uint|float)64Index DEPR: Remove ABC(Int|Uint|Float)64Index Jan 16, 2023
@topper-123 topper-123 force-pushed the remove_ABCInt/UInt/Float64Index branch from 4f13011 to 0d503ce Compare January 16, 2023 15:45
Float64Index(np.arange(5, dtype="float64")),
Int64Index(np.arange(5, dtype="int64")),
UInt64Index(np.arange(5, dtype="uint64")),
# TODO: add more dtypes here
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 got some problems with arithmetics with non-64-bit indexes. I'd like to take them in a follow-up.

@topper-123 topper-123 force-pushed the remove_ABCInt/UInt/Float64Index branch from 05c23dd to 485eb10 Compare January 17, 2023 00:10
@topper-123 topper-123 marked this pull request as ready for review January 18, 2023 01:14
@topper-123
Copy link
Contributor Author

All green now.

@@ -669,15 +669,15 @@ def test_mul_int_array(self, numeric_idx):
result = idx * np.array(5, dtype="int64")
tm.assert_index_equal(result, idx * 5)

arr_dtype = "uint64" if isinstance(idx, UInt64Index) else "int64"
arr_dtype = "uint64" if idx.dtype == np.uint64 else "int64"
Copy link
Member

Choose a reason for hiding this comment

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

Can we use is_unsigned_integer_dtype here? Ok as follow up

@phofl phofl added Deprecate Functionality to remove in pandas Index Related to the Index class or subclasses labels Jan 18, 2023
@phofl phofl added this to the 2.0 milestone Jan 18, 2023
@phofl phofl merged commit 3f0af5e into pandas-dev:main Jan 18, 2023
@phofl
Copy link
Member

phofl commented Jan 18, 2023

thx @topper-123

@topper-123 topper-123 deleted the remove_ABCInt/UInt/Float64Index branch January 18, 2023 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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.

2 participants