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 ignores as_index= argument #13897

Closed
shwina opened this issue Aug 17, 2023 · 1 comment · Fixed by #13951
Closed

[BUG] Groupby-apply ignores as_index= argument #13897

shwina opened this issue Aug 17, 2023 · 1 comment · Fixed by #13951
Assignees
Labels
bug Something isn't working

Comments

@shwina
Copy link
Contributor

shwina commented Aug 17, 2023

The as_index= argument is ignored by groupby-apply:

In [2]: df = cudf.DataFrame({'a': [1, 1, 2], 'b': [1, 2, 3]})
In [3]: df.groupby('a', as_index=False).apply(lambda x: x['b'].sum())
Out[3]:
a
1    3
2    3
dtype: int64

In [4]: df.to_pandas().groupby('a', as_index=False).apply(lambda x: x['b'].sum())
Out[4]:
   a  None
0  1     3
1  2     3
@shwina shwina added bug Something isn't working Needs Triage Need team to review and classify labels Aug 17, 2023
@brandon-b-miller brandon-b-miller self-assigned this Aug 17, 2023
@brandon-b-miller
Copy link
Contributor

I think I know what might be happening here, will take a look!

rapids-bot bot pushed a commit that referenced this issue Aug 25, 2023
@bdice bdice removed the Needs Triage Need team to review and classify label Mar 4, 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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants