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 some more Int/UInt/Float64Index from tests #50075

Conversation

topper-123
Copy link
Contributor

Progress towards #42717, one easy step at a time...

There are still some places that have these indexes, but maybe easier taking these things in steps.

@jbrockmendel
Copy link
Member

pandas/tests/indexes/test_base.py::TestIndex::test_reindex_doesnt_preserve_type_if_target_is_empty_index_numeric

@mroeschke mroeschke added Testing pandas testing functions or related to the test suite Deprecate Functionality to remove in pandas labels Dec 5, 2022
@topper-123
Copy link
Contributor Author

I’ve updated the PR.

@@ -1148,10 +1139,19 @@ def test_reindex_doesnt_preserve_type_if_target_is_empty_index(self, labels, dty
index = Index(list("abc"))
assert index.reindex(labels)[0].dtype.type == dtype

def test_reindex_doesnt_preserve_type_if_target_is_empty_index_numeric(
Copy link
Member

Choose a reason for hiding this comment

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

is this moved from somewhere else or a new test?

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

@jbrockmendel jbrockmendel merged commit 5206bb5 into pandas-dev:main Dec 6, 2022
@jbrockmendel
Copy link
Member

thanks @topper-123

@topper-123 topper-123 deleted the remove_int_uint_float_index_from_tests branch December 6, 2022 19:25
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.

3 participants