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

Consider adding a parameter to nest aggregated columns: aggregate(under: String?) #702

Open
koperagen opened this issue May 19, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@koperagen
Copy link
Collaborator

koperagen commented May 19, 2024

df.groupBy { key }.aggregate {
  1 into "col"
}

schema:

key
col
df.groupBy { key }.aggregate(under = "statistics") {
  1 into "col"
}

schema:

key
statistics:
  col

Make sure it's consistent across other aggregate overloads (if makes sense)

@koperagen koperagen added the enhancement New feature or request label May 19, 2024
@koperagen koperagen changed the title Consider adding parameter to nest aggregated columns: aggregate(under: String?) Consider adding a parameter to nest aggregated columns: aggregate(under: String?) May 19, 2024
@koperagen
Copy link
Collaborator Author

This creates a ColumnGroup by default. It's a bit different from aggregate with into statements

df_3.groupBy { year }.aggregate { 
    maxBy { gflops.toDouble() }
}
year
aggregated:
  other columns

@zaleslaw zaleslaw added this to the 0.14.0 milestone Jul 19, 2024
@zaleslaw
Copy link
Collaborator

zaleslaw commented Jul 19, 2024

Unclear description of feature, need to refresh together @koperagen

@zaleslaw zaleslaw modified the milestones: 0.14.0, Backlog Sep 4, 2024
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

No branches or pull requests

2 participants