-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Broken nunique on Series group by #11077
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
Comments
Can we just revert that change and keep the test? |
The only other solution I see is to coerce |
if its not
|
ok |
or rather it has a |
Using In [8]: np.lexsort(([1, 2, 3], list('cba')))
Out[8]: array([2, 1, 0])
In [9]: np.lexsort(([1, 2, 3], pd.factorize(list('cba'))[0]))
Out[9]: array([0, 1, 2]) |
might be faster to just use |
yep |
factorize does work there.
if you do not understand the algo, it would be better to ping whoever wrote the code rather than suggesting to revert it |
@behzadnouri This is unrelated to my understanding of the algorithm. My suggestion to revert it was based on the fact that it broke existing code. |
existing code is not forced to update to master |
@behzadnouri no this DID break things. We just weren't fully testing it. |
That's certainly true. However this broke existing pandas code. |
The following code works in 0.16.2 and not in latest master:
Going to bisect this today unless someone beats me to it.
The text was updated successfully, but these errors were encountered: