-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: additional keys in groupby indices when NAs are present #38861
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
Changes from all commits
8938a5f
7041af6
b51f9e7
493b7d9
39396e3
b769afc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -888,12 +888,17 @@ def indices_fast(ndarray index, const int64_t[:] labels, list keys, | |
|
||
k = len(keys) | ||
|
||
if n == 0: | ||
# Start at the first non-null entry | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess L891 is redundant now? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. but its fine There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, it is, thanks. Removed. |
||
j = 0 | ||
for j in range(0, n): | ||
if labels[j] != -1: | ||
break | ||
else: | ||
return result | ||
cur = labels[j] | ||
start = j | ||
|
||
start = 0 | ||
cur = labels[0] | ||
for i in range(1, n): | ||
for i in range(j+1, n): | ||
lab = labels[i] | ||
|
||
if lab != cur: | ||
|
Uh oh!
There was an error while loading. Please reload this page.