Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Returns Pi. Supports Spark Connect.
For the corresponding Databricks SQL function, see pi function.
Syntax
from pyspark.databricks.sql import functions as dbf
dbf.pi()
Parameters
| Parameter | Type | Description |
|---|---|---|
| (none) | This function takes no parameters. |
Examples
from pyspark.databricks.sql import functions as dbf
spark.range(1).select(dbf.pi()).show()
+-----------------+
| PI()|
+-----------------+
|3.141592653589793|
+-----------------+