pyspark.sql.functions.
positive
Returns the value.
New in version 3.5.0.
Column
input value column.
value.
Examples
>>> df = spark.createDataFrame([(-1,), (0,), (1,)], ['v']) >>> df.select(positive("v").alias("p")).show() +---+ | p| +---+ | -1| | 0| | 1| +---+
previous
pyspark.sql.functions.pmod
next
pyspark.sql.functions.pow