blob: 34364097a1500cfc759cce31a475cd0593a210fd [file]
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 }.before { g.b }
dfWithD.checkCompileTimeSchemaEqualsRuntime()
val dCol: DataColumn<Int> = dfWithD.g.d
return "OK"
}