inline fun <reified T> DataFrame.oneHot(columnName: String, naValue: String = "NA", crossinline categorizeWith: (T?) -> String? = { it?.toString() }): DataFrame
Performs a one-hot encoding of the specified Any
column.
fun DataFrame.oneHot(columnName: String): DataFrame
Performs a one-hot encoding of the specified column.