-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
Named agg tuples Issue #18220 #54563
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
Conversation
doc/source/user_guide/groupby.rst
Outdated
@@ -770,6 +770,77 @@ no column selection, so the values are just the functions. | |||
max_height="max", | |||
) | |||
|
|||
Passing a List of Tuples |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay
@@ -770,6 +770,7 @@ no column selection, so the values are just the functions. | |||
max_height="max", | |||
) | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'a' | 1.2 | ||
|
||
Example: Applying multiple aggregations - mean and standard deviation | ||
df_result = df.groupby('key')['data'].agg([('mean_value', 'mean'), ('std_deviation', 'std')]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you format this as a code example like the others in this string?
pandas/core/groupby/generic.py
Outdated
@@ -1334,6 +1334,29 @@ def unique(self) -> Series: | |||
|
|||
|
|||
class DataFrameGroupBy(GroupBy[DataFrame]): | |||
groupby_agg_with_tuples_example = """ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't needed anymore
Thanks for the pull request, but it appears to have gone stale. If interested in continuing, please merge in the main branch, address any review comments and/or failing tests, and we can reopen. |
Okay noted
…On Mon, Sep 11, 2023 at 11:41 AM Matthew Roeschke ***@***.***> wrote:
Thanks for the pull request, but it appears to have gone stale. If
interested in continuing, please merge in the main branch, address any
review comments and/or failing tests, and we can reopen.
—
Reply to this email directly, view it on GitHub
<#54563 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUGCC76LHSKEVYOJ52VPBMDXZ45MJANCNFSM6AAAAAA3RRSQTU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.