pyspark.sql.functions.signum

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

Computes the signum of the given value.