Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pandas/_libs/algos.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ def groupsort_indexer(const intp_t[:] index, Py_ssize_t ngroups):
This is a reverse of the label factorization process.
"""
cdef:
Py_ssize_t i, loc, label, n
ndarray[intp_t] indexer, where, counts
Py_ssize_t i, label, n
intp_t[::1] indexer, where, counts

counts = np.zeros(ngroups + 1, dtype=np.intp)
n = len(index)
Expand All @@ -241,7 +241,7 @@ def groupsort_indexer(const intp_t[:] index, Py_ssize_t ngroups):
indexer[where[label]] = i
where[label] += 1

return indexer, counts
return indexer.base, counts.base


cdef inline Py_ssize_t swap(numeric *a, numeric *b) nogil:
Expand Down