-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
GroupBy Rank Operations With Infinity Incorrect #20561
Comments
At line 723, groupby_helper.pxi
This is the cause of it. We cannot separate infs from nans. |
@peterpanmj doesn't the |
Yes, |
So would it make sense to have those be separate conditions then? Something along the lines of if masked_vals[_as[i]] != masked_vals[_as[i+1]]:
if mask[_as[i]] or mask[_as[i+1]:
# Either nan or inf here...
mask[_as[i]] and mask[_as[i+1]:
# This would mean both are nan
else:
# One is inf
else:
# Not dealing with nan or inf Not saying the above is the right approach and couldn't be refactored but think its in the right direction. All of the elements are there so just need to piece together appropriately |
|
xref #20091 @peterpanmj
The text was updated successfully, but these errors were encountered: