-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
OPS: Remove mask_cmp_op fallback behavior #28601
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
Conversation
lgtm. I think this needs a note (you can just put in bug fixes would be fine); as something that 'worked' before now will raise (correctly) |
note added |
@@ -199,7 +199,7 @@ Timezones | |||
Numeric | |||
^^^^^^^ | |||
- Bug in :meth:`DataFrame.quantile` with zero-column :class:`DataFrame` incorrectly raising (:issue:`23925`) | |||
- | |||
- :class:`DataFrame` inequality comparisons with object-dtype and ``complex`` entries failing to raise ``TypeError`` like their :class:`Series` counterparts (:issue:`28079`) |
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.
entries -> dtypes (can do in later PR)
thanks minor comment for followup |
@jbrockmendel you mentioned that you changed the behaviour of the flex method for Series or DataFrame ( |
Updated question: this was only for the comparison methods and not the comparison operation, correct? If so, I would be clearer on that in the whatsnew note. |
Which is a long way of saying I don't understand the question. Do you have a suggested edit for the whatsnew note?
I don't understand the distinction. Can you give an example? |
As you say, that are methods. And with the comparison operators I mean >, <, .. An essential difference in this case, and if you just say "comparison" most people will think about the second IMO |
How would you word the note? Adding the word "flex" is a start. |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
xref #28050.
To make the Series vs DataFrame behavior consistent, the two main options are a) change the DataFrame behavior (this PR) or b) change the Series behavior. The latter is complicated by the fact that for object dtypes the Series comparisons go through comp_method_OBJECT_ARRAY instead of the numpy op, so we would still have to change the complex-case test changed here.