Skip to content
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

[BUG] Grouping by a nonexistent key gives ValueError rather than KeyError #11791

Open
shwina opened this issue Sep 27, 2022 · 0 comments
Open
Labels
bug Something isn't working Python Affects Python cuDF API.

Comments

@shwina
Copy link
Contributor

shwina commented Sep 27, 2022

I would expect the code below to raise a KeyError, but it raises a ValueError instead:

>>> import cudf
>>> df = cudf.DataFrame({'a': [1, 1, 2], 'b': [1, 2, 3]})
>>> df.groupby('cd').sum() 
...
ValueError: Grouper and object must have same length
@shwina shwina added bug Something isn't working Needs Triage Need team to review and classify Python Affects Python cuDF API. and removed Needs Triage Need team to review and classify labels Sep 27, 2022
@vyasr vyasr added this to cuDF Python Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Python Affects Python cuDF API.
Projects
Status: Todo
Development

No branches or pull requests

1 participant