-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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
BUG: Fix comparison between nullable int and string #28945
Conversation
The fix here makes sense. Are there any other types we could compare against that this fixes? e.g. |
Merging master should fix the CI failures. |
The CI failures seem to be from tests on cummin and cummax for Series with datetime64 and timedelta64 dtypes |
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.
minor comment on test but otherwise lgtm
@dsaxton can you fix up merge conflict? |
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.
small change, pls merge master and ping on green.
pandas/core/arrays/integer.py
Outdated
@@ -652,7 +653,13 @@ def cmp_method(self, other): | |||
with warnings.catch_warnings(): | |||
warnings.filterwarnings("ignore", "elementwise", FutureWarning) | |||
with np.errstate(all="ignore"): | |||
result = op(self._data, other) | |||
method = getattr( | |||
self._data, "__{op_name}__".format(op_name=op_name) |
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.
can you change this to a f-string
thanks @dsaxton |
NP, thanks for the review |
black pandas