Skip to content
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

Implement Named Aggregation #823

Closed
charlesdong1991 opened this issue Sep 23, 2019 · 0 comments · Fixed by #911
Closed

Implement Named Aggregation #823

charlesdong1991 opened this issue Sep 23, 2019 · 0 comments · Fixed by #911
Labels
enhancement New feature or request

Comments

@charlesdong1991
Copy link
Contributor

Pandas has put forward a named aggregation for groupby aggregation since 0.25.0, I am working on an implementation on this.

@HyukjinKwon HyukjinKwon added the enhancement New feature or request label Sep 26, 2019
HyukjinKwon pushed a commit that referenced this issue Oct 11, 2019
This is equivalent to nested renaming, so like pandas, we have `koalas.NamedAgg` now for this:
```python
        >>> aggregated = df.groupby('A').agg(b_max=ks.NamedAgg(column='B', aggfunc='max'))
        >>> aggregated
             b_max
        A
        1        2
        2        4
```

Resolves #823
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants