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: move NumericIndex._convert_tolerance to Index #50932

Conversation

topper-123
Copy link
Contributor

Moves_convert_tolerance from NumericIndexto Index in preparation to remove NumericIndex and include numpy int/uint/float64 in the base Index.

xref #42717.

@topper-123 topper-123 force-pushed the move_NumericIndex._convert_tolerance_to_Index branch from 6c65328 to 8caa722 Compare January 23, 2023 12:06
@mroeschke mroeschke added the Deprecate Functionality to remove in pandas label Jan 23, 2023
@topper-123 topper-123 force-pushed the move_NumericIndex._convert_tolerance_to_Index branch from 8caa722 to 37bd4b4 Compare January 23, 2023 19:51
@topper-123 topper-123 force-pushed the move_NumericIndex._convert_tolerance_to_Index branch from 37bd4b4 to d50c82d Compare January 23, 2023 23:15
@topper-123
Copy link
Contributor Author

Ping.

)

raise ValueError(
f"tolerance argument for {type(self).__name__} must be numeric "
Copy link
Member

Choose a reason for hiding this comment

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

should type(self).__name__ here be changed to refer to dtype instead of type?

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, now that Index can handle a lot of different dtypes (numeric and non-numeric) that makes sense. 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.

Error messages updated.

@topper-123
Copy link
Contributor Author

This has also been updated :-)

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 74b13fa into pandas-dev:main Jan 25, 2023
@jbrockmendel
Copy link
Member

thanks @topper-123

@topper-123 topper-123 deleted the move_NumericIndex._convert_tolerance_to_Index branch January 25, 2023 21:12
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants