Skip to content

Commit

Permalink
Treat incomplete group keys as distinct when shifting
Browse files Browse the repository at this point in the history
  • Loading branch information
ivannz committed Jul 29, 2016
1 parent 966d5c6 commit fe2f0ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pandas/src/algos_groupby_helper.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -1359,6 +1359,7 @@ def group_shift_indexer(int64_t[:] out, int64_t[:] labels,

# Skip null keys
if lab == -1:
out[ii] = -1
continue

label_seen[lab] += 1
Expand Down

0 comments on commit fe2f0ec

Please sign in to comment.