toBoolean

Converts values in the columns previously selected with convert to Boolean, preserving their original names and positions within the DataFrame. Preserves null values.

For more information: See convert on the documentation website.

Examples:

df.convert { isMarked and isFinished }.toBoolean()
df.convert { colsOf<String?> { it.name.startsWith("it") } }.toBoolean()

Return

A new DataFrame with the values converted to Boolean.