You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was shocked to discover this issue as well. I think the problem is in the Cython function called within the else statement in pandas.core.groupby._indexer_from_factorized:
if max_group > 1e6:
# Use mergesort to avoid memory errors in counting sort
indexer = comp_ids.argsort(kind='mergesort')
else:
indexer, _ = _algos.groupsort_indexer(comp_ids.astype(np.int64),
max_group)
Unfortunately, I don't know enough about debugging Cython code to help out more than this.
Nested sort doesn't seem to work with NaNs, see this SO question.
(It works as expected using a single columns)
The text was updated successfully, but these errors were encountered: