Dataframe 0.12 Help

filter

Returns DataFrame with rows that satisfy row condition

df.filter { age > 18 && name.firstName.startsWith("A") }
val age by column<Int>() val name by columnGroup() val firstName by name.column<String>() df.filter { age() > 18 && firstName().startsWith("A") } // or df.filter { it[age] > 18 && it[firstName].startsWith("A") }
df.filter { "age"<Int>() > 18 && "name"["firstName"]<String>().startsWith("A") }

filterBy

Returns DataFrame with rows that have value true in given column of type Boolean.

df.filterBy { isHappy }
val isHappy by column<Boolean>() df.filterBy { isHappy }
df.filterBy("isHappy")
Last modified: 22 January 2024