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] Groupby-apply returns DataFrame rather than Series when taking the JIT path #13809

Closed
shwina opened this issue Aug 2, 2023 · 0 comments · Fixed by #13820
Closed

[BUG] Groupby-apply returns DataFrame rather than Series when taking the JIT path #13809

shwina opened this issue Aug 2, 2023 · 0 comments · Fixed by #13820
Assignees
Labels
bug Something isn't working Python Affects Python cuDF API.

Comments

@shwina
Copy link
Contributor

shwina commented Aug 2, 2023

Depending on whether I choose engine='jit' or engine='cudf', I get back a DataFrame rather than the expected Series:

In [3]: df = cudf.DataFrame({'a': [1, 1, 1, 2, 2], 'b': [1, 2, 3, 4, 5]})

In [4]: df.groupby('a').apply(lambda group: group['a'].sum())
Out[4]:
   a  None
0  1     3
1  2     4

In [5]: df.groupby('a').apply(lambda group: group['a'].sum(), engine='cudf')
Out[5]:
a
1    3
2    4
dtype: int64
@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 Aug 2, 2023
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
None yet
Development

Successfully merging a pull request may close this issue.

2 participants