-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Fix Series divmod #26987 #27130
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
if mask.any(): | ||
res2[mask] = np.nan | ||
return res1, res2 | ||
|
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.
if you do thi brlow line 546 you may not need to duplicate code
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 it ends up being a wash because we have to do these checks in multiple places
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.
the style of this change is not consistent with the rest of the function, it could be better integrated, for example a helper function would go a long way here.
@TomAugspurger I'm running into issues in this branch calling np.putmask on a SparseArray. Is there an alternative for that? |
merge master here |
Still troubleshooting SparseArray and IntegerArray failures locally. |
Closing in favor of #27239; SparseArray putmask needs to be figured out before this branch can go anywhere. |
git diff upstream/master -u -- "*.py" | flake8 --diff