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

884 B
Vendored

Iterate over rows:

for (row in df) {
    println(row.age)
}

df.forEach {
    println(it.age)
}

df.rows().forEach {
    println(it.age)
}
for (row in df) {
    println(row["age"])
}

df.forEach {
    println(it["age"])
}

df.rows().forEach {
    println(it["age"])
}

Iterate over columns:

df.columns().forEach {
    println(it.name())
}

Iterate over cells:

// from top to bottom, then from left to right
df.values().forEach {
    println(it)
}

// from left to right, then from top to bottom
df.values(byRows = true).forEach {
    println(it)
}