-
Notifications
You must be signed in to change notification settings - Fork 942
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] df.groupby(['a']).agg({'b': ['mean', 'mean']})
only produces a single column (as opposed to 2)
#17649
Comments
To support this case we will need to add support for duplicate column names in |
thanks for your response tbf now that you've added support for
the last I remember hearing about this was that duplicate column names are a fact of life and should continue to be supported (though to be honest I think they create more problems than they solve) |
Yeah agreed with Marco that I think pandas will continue to support duplicate column names in the foreseeable future |
Yes that is consistent with what I've heard in previous discussions about this as well. |
Same for cudf.pandas for this issue OK with just raising here on cudf's side? |
…be created (#17956) xref #17649 For `cudf.pandas`, we will dispatch to pandas instead of silently dropping the duplicate column Authors: - Matthew Roeschke (https://github.com/mroeschke) Approvers: - Vyas Ramasubramani (https://github.com/vyasr) URL: #17956
Describe the bug
A clear and concise description of what the bug is.
Steps/Code to reproduce bug
outputs
Expected behavior
what pandas does:
Spotted in Narwhals
Environment overview (please complete the following information)
docker pull
&docker run
commands used24.10.01, google colab
Environment details
Please run and paste the output of the
cudf/print_env.sh
script here, to gather any other relevant environment detailsAdditional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: