Skip to content

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

Closed

Conversation

Ememobong28
Copy link

@Ememobong28 Ememobong28 commented Aug 15, 2023

@@ -770,6 +770,77 @@ no column selection, so the values are just the functions.
max_height="max",
)

Passing a List of Tuples
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be removed

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay

@mroeschke mroeschke added the Docs label Aug 15, 2023
@@ -770,6 +770,7 @@ no column selection, so the values are just the functions.
max_height="max",
)


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

'a' | 1.2

Example: Applying multiple aggregations - mean and standard deviation
df_result = df.groupby('key')['data'].agg([('mean_value', 'mean'), ('std_deviation', 'std')])
Copy link
Member

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?

@@ -1334,6 +1334,29 @@ def unique(self) -> Series:


class DataFrameGroupBy(GroupBy[DataFrame]):
groupby_agg_with_tuples_example = """
Copy link
Member

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

@mroeschke
Copy link
Member

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.

@mroeschke mroeschke closed this Sep 11, 2023
@Ememobong28
Copy link
Author

Ememobong28 commented Sep 11, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DOC: DataFrame.groupy.agg with a list of tuples
2 participants