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

DEPR: remove Int64Index, UInt64Index, Float64Index from tests.indexes.numeric #49682

Conversation

topper-123
Copy link
Contributor

@topper-123 topper-123 commented Nov 13, 2022

Progress towards #42717. Other locations will follow.

There are tests in here that probably should be parametrized when Index will be able to return non-64 bit dtypes. I'll do that in followups, after Index returns a NumericIndex.

@@ -285,14 +280,12 @@ def test_get_indexer_nearest_decreasing(self, method, expected):
actual = index.get_indexer([0.2, 1.8, 8.5], method=method)
tm.assert_numpy_array_equal(actual, np.array(expected, dtype=np.intp))

@pytest.mark.parametrize(
"idx_class", [Int64Index, RangeIndex, Float64Index, UInt64Index]
Copy link
Member

Choose a reason for hiding this comment

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

do the RangeIndex cases need to be added back somewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. I'll work something into this take this into account.

@topper-123 topper-123 force-pushed the remove_old_numeric_indexes_from_tests_part_1 branch from cf19354 to 7f697c3 Compare November 14, 2022 23:16
@topper-123
Copy link
Contributor Author

updated.

@mroeschke mroeschke added the Deprecate Functionality to remove in pandas label Nov 16, 2022
@mroeschke mroeschke added this to the 2.0 milestone Nov 16, 2022
@mroeschke mroeschke added the Testing pandas testing functions or related to the test suite label Nov 16, 2022
@mroeschke mroeschke merged commit c140a43 into pandas-dev:main Nov 16, 2022
@mroeschke
Copy link
Member

Thanks @topper-123

@topper-123 topper-123 deleted the remove_old_numeric_indexes_from_tests_part_1 branch November 16, 2022 21:00
MarcoGorelli pushed a commit to MarcoGorelli/pandas that referenced this pull request Nov 18, 2022
….numeric (pandas-dev#49682)

* DEPR: remove Int64Index, UInt64Index, Float64Index from tests.indexes.numeric

* add back pylint

* RangeIndex in test_indexing.py

Co-authored-by: Terji Petersen <terjipetersen@Terjis-Air.fritz.box>
mliu08 pushed a commit to mliu08/pandas that referenced this pull request Nov 27, 2022
….numeric (pandas-dev#49682)

* DEPR: remove Int64Index, UInt64Index, Float64Index from tests.indexes.numeric

* add back pylint

* RangeIndex in test_indexing.py

Co-authored-by: Terji Petersen <terjipetersen@Terjis-Air.fritz.box>
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 Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants