Skip to content

ENH: Add **kwargs to pivot_table to allow the specification of aggfunc keyword arguments #57884 #58893

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

Merged
merged 5 commits into from
Jun 6, 2024

Conversation

PF2100
Copy link
Contributor

@PF2100 PF2100 commented Jun 2, 2024

Add the option of passing keyword arguments to DataFrame.pivot_table and pivot_table's aggfunc through **kwargs.

ruimamaral and others added 2 commits June 2, 2024 17:09
Add the option of passing keyword arguments to DataFrame.pivot_table
and pivot_table's aggfunc through **kwargs.

Co-authored-by: Pedro Freitas <[email protected]>
@mroeschke mroeschke requested a review from rhshadrach June 3, 2024 18:13
@mroeschke mroeschke added the Reshaping Concat, Merge/Join, Stack/Unstack, Explode label Jun 3, 2024
Copy link
Member

@rhshadrach rhshadrach left a comment

Choose a reason for hiding this comment

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

Looking good!

@ruimamaral ruimamaral force-pushed the 57884-add-kwargs-to-pivot_table branch from c304d80 to a4d2611 Compare June 5, 2024 22:18
@PF2100 PF2100 requested a review from rhshadrach June 5, 2024 23:26
Copy link
Member

@rhshadrach rhshadrach left a comment

Choose a reason for hiding this comment

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

lgtm

@rhshadrach rhshadrach added this to the 3.0 milestone Jun 6, 2024
@rhshadrach rhshadrach merged commit 8b70567 into pandas-dev:main Jun 6, 2024
51 checks passed
@rhshadrach
Copy link
Member

Thanks @PF2100!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ENH: Allow args to be specified for the pivot_table aggfunc
4 participants