Skip to content

Commit

Permalink
Explicitly set dtype of np.lexsort in group_rank (#19679)
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAyd authored and jreback committed Feb 13, 2018
1 parent 8cace88 commit 49812cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/_libs/groupby_helper.pxi.in
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ def group_rank_{{name}}(ndarray[float64_t, ndim=2] out,
# each label corresponds to a different group value,
# the mask helps you differentiate missing values before
# performing sort on the actual values
_as = np.lexsort(order)
_as = np.lexsort(order).view(dtype=np.int64)

if not ascending:
_as = _as[::-1]
Expand Down

0 comments on commit 49812cf

Please sign in to comment.