-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DEPR: move NumericIndex._convert_tolerance to Index #50932
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
6c65328
to
8caa722
Compare
8caa722
to
37bd4b4
Compare
37bd4b4
to
d50c82d
Compare
Ping. |
pandas/core/indexes/base.py
Outdated
) | ||
|
||
raise ValueError( | ||
f"tolerance argument for {type(self).__name__} must be numeric " |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error messages updated.
This has also been updated :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
thanks @topper-123 |
Moves
_convert_tolerance
fromNumericIndex
toIndex
in preparation to removeNumericIndex
and include numpy int/uint/float64 in the baseIndex
.xref #42717.