Skip to content

Feature Request: Transform excepting dicts and lists after groupby #27379

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
Make42 opened this issue Jul 13, 2019 · 1 comment
Closed

Feature Request: Transform excepting dicts and lists after groupby #27379

Make42 opened this issue Jul 13, 2019 · 1 comment
Labels
Duplicate Report Duplicate issue or pull request

Comments

@Make42
Copy link

Make42 commented Jul 13, 2019

@WillAyd
Just so I'm clear, you're suggesting something like:
test.groupby('groups').transform({'value1': [np.mean, max], 'value2': max}) which should return something like:

                    value1     value2    
                      mean max   max
2012-02-01 14:00:00      2   3    30
2012-02-01 14:01:00      2   3    30
2012-03-05 14:04:00      2   3    30
2012-03-05 14:01:00      5   6    60
2012-03-10 14:02:00      5   6    60
2012-03-11 14:07:50      5   6    60

Originally posted by @brianhuey in #17309 (comment)

Exactly this is my feature request.

@WillAyd
Copy link
Member

WillAyd commented Jul 13, 2019

If you have a PR for the issue linked feel free to push.

Closing this as duplicate (don't need a new issue)

@WillAyd WillAyd added the Duplicate Report Duplicate issue or pull request label Jul 13, 2019
@WillAyd WillAyd closed this as completed Jul 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate Report Duplicate issue or pull request
Projects
None yet
Development

No branches or pull requests

2 participants