Files
2026-02-08 11:20:43 -10:00

14 lines
352 B
Kotlin
Vendored

import org.jetbrains.kotlinx.dataframe.*
import org.jetbrains.kotlinx.dataframe.api.*
fun box(): String {
val df = dataFrameOf("a", "b", "c")(1, 2, 3, 4, 5, 6)
val grouped = df.group { a and b and c }.into("g")
val dfWithD = grouped.insert("d") { g.b * g.c }.after { g.b }
val dCol: DataColumn<Int> = dfWithD.g.d
return "OK"
}