-
-
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
TST (string dtype): resolve all infer_string TODO/xfails in pandas/tests/arrays #59686
TST (string dtype): resolve all infer_string TODO/xfails in pandas/tests/arrays #59686
Conversation
name, skipna=skipna, keepdims=keepdims, **kwargs | ||
) | ||
if keepdims: | ||
# ArrowExtensionArray will return a length-1 bool[pyarrow] array | ||
return result.astype(np.bool_) |
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.
is there a chance of having NAs here?
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.
other than this, LGTM
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.
I think not. So with the default of skipna=True
, we skip missing values and AFAIK the result is never a NaN (because for empty the result is True/False for all/any).
And for the case of skipna=False
, we are still in the "NaN-semantics" branch, where we do not use Kleene logic but regard missing values as Trues.
This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this. |
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon! Remember to remove the If these instructions are inaccurate, feel free to suggest an improvement. |
…sts/arrays (pandas-dev#59686) (cherry picked from commit 4f328f0)
Manual backport: #60020 |
Together with the test changes in #59678 and #59682, this PR then resolves the remaining
infer_string
TODO or xfails inpandas/tests/arrays
xref #54792