pyspark.sql.functions.
pi
Returns Pi.
New in version 3.5.0.
Examples
>>> spark.range(1).select(pi()).show() +-----------------+ | PI()| +-----------------+ |3.141592653589793| +-----------------+
previous
pyspark.sql.functions.negative
next
pyspark.sql.functions.pmod