-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
API: DataFrame.__and__ vs Series.__and__ fillna behavior mismatch #28466
Comments
Which, if any, would you propose to accept? Filling with NaN is consistent with other ops I suppose. |
I don't think there is a good reason to keep the mismatch, but I also don't think there is a clear correct expected result right now, as we basically do not support (or have defined behaviour for) boolean data with missing values. This relates to the discussion on missing values in #28095 and specifically what the behaviour of NA should be in logical operations. Also And if you do it on the underlying numpy values, that just raises (that might actually be a safer default for now, making it more easily to choose whatever behaviour later)
This relates |
@jorisvandenbossche are you suggesting anything in particular for the short-term to bring these into alignment? |
Nope .. except for raising an error instead, but that's probably a bit too drastic. |
closing as duplicate of #22724 |
Based on tests.series.test_operators
test_logical_ops_df_compat
Is there still a compelling reason to keep this mismatched behavior?
The text was updated successfully, but these errors were encountered: