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

1.2 KiB
Vendored

any

Discover `any` operation in Kotlin Dataframe. Discover `any` operation in Kotlin Dataframe. Discover `any` operation in Kotlin Dataframe.

Checks if there is at least one row in the that satisfies the predicate.

Returns Booleantrue if there is at least one row that satisfies the predicate, false otherwise.

df.any { rowCondition }

rowCondition: (DataRow) -> Boolean

Related operations: , , , .

Examples

df

Check if any person age is greater than 21:

df.any { age > 21 }

Output:

false

Check if there is any person with age equal to 15 and name equal to "Alice":

df.any { age == 15 && name == "Alice" }

Output:

true