pyspark.sql.functions.signum

pyspark.sql.functions.signum(col: ColumnOrName) → pyspark.sql.column.Column[source]

Computes the signum of the given value.

New in version 1.4.