Kotlin / dataframe

Structured data processing in Kotlin
https://kotlin.github.io/dataframe/overview.html
Apache License 2.0
763 stars 48 forks source link

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

Open koperagen opened 1 month ago

koperagen commented 1 month ago
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)