Files
df-research/dataframe/docs/StardustDocs/topics/operations/utils/all.md
2026-02-08 11:20:43 -10:00

1.1 KiB
Vendored

all

Discover `all` operation in Kotlin Dataframe. Discover `all` operation in Kotlin Dataframe. Discover `all` operation in Kotlin Dataframe.

Checks if all rows in the satisfy the predicate.

Returns Booleantrue if every row satisfies the predicate, false otherwise.

all { rowCondition }

rowCondition: (DataRow) -> Boolean

Related operations: , , , .

Examples

df

Check if all persons' age is greater than 21:

df.all { age > 21 }

Output:

false

Check if all persons have age greater or equal to 15:

df.all { name.first().isUpperCase() && age >= 15 }

Output:

true