div
Division this expression by another expression.
// Scala: The following divides a person's height by their weight.
people.select( people("height") / people("weight") )
// Kotlin
import org.jetbrains.kotlinx.spark.api.*
people.select( people("height") / people("weight") )
// Java:
import static org.apache.spark.sql.functions.*;
people.select( people.col("height").divide(people.col("weight")) );
Content copied to clipboard