pyspark.sql.functions.pi# pyspark.sql.functions.pi()[source]# Returns Pi. New in version 3.5.0. Examples >>> spark.range(1).select(pi()).show() +-----------------+ | PI()| +-----------------+ |3.141592653589793| +-----------------+