-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: invalid coercion raises in groupby uniques #14758
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
this works on master if someone wants to do a test. |
cc @gfyoung |
Why should we inferring |
I believe the correct return >>> df = pd.DataFrame([[1, 2], [3, 4], [5, 6]], dtype=object) + 9
>>> df.groupby(0).sum().dtypes
1 int64
dtype: object |
this was before uint64 support that's why it works now just need a test to verify i bet this will break though with a number out of range for uint64 though (but maybe separate issue) |
Ah, yes, confirmed. I'll add this as a test.
That's probably a separate issue. Handling numbers beyond what we can capably hold is going to very difficult in any case. |
We are inferring int when the this should be 'object' (or just not integer):
The text was updated successfully, but these errors were encountered: