pyspark.sql.functions.abs

pyspark.sql.functions.abs(col)

Computes the absolute value.

New in version 1.3.