init research

This commit is contained in:
2026-02-08 11:20:43 -10:00
commit bdf064f54d
3041 changed files with 1592200 additions and 0 deletions
@@ -0,0 +1,19 @@
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(
"value" to listOf(1, 2, 3, 3),
"type" to listOf("a", "b", "a", "b")
)
val gb = df.groupBy { expr { "Category: ${type.uppercase()}" } named "category" }
val categoryKey = gb.keys.category
val dfWithCategory = gb.concatWithKeys()
val category: DataColumn<String> = dfWithCategory.category
return "OK"
}