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

18 lines
522 B
Kotlin
Vendored

import org.jetbrains.kotlinx.dataframe.*
import org.jetbrains.kotlinx.dataframe.annotations.*
import org.jetbrains.kotlinx.dataframe.api.*
import org.jetbrains.kotlinx.dataframe.io.*
fun box(): String {
val df = dataFrameOf("a", "b", "c")(1, 2, 3)
.group { a and b }.into("d")
.move { c }.under { d }
df.compareSchemas(strict = true)
// alias for group into
dataFrameOf("a", "b", "c")(1, 2, 3)
.move { a and b }.under("d")
.compareSchemas(strict = true)
return "OK"
}