-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
API: specification of functions in .agg #8593
Comments
@shoyer heres my use-case. This is a specification engine (similar in concept to
|
I know this isn't the place, but how does one use |
Dicussed on today's dev call, main comments were 1) does NamedAgg cover some of this? 2) "No" to doing eval on "nth(1)", 3) pd.Grouper is one of the harder-to-reason-about parts of the codebase and we don't want more things like it. Closing as no action. |
pd.Summary
From SO
Would be nice to be able to use
lambda x: x.nth(1)
or maybe'nth(1)'
In [103]: df.groupby('A').agg(['mean','nth(1')])
The text was updated successfully, but these errors were encountered: