snowflake.snowpark.functions.pi¶
- snowflake.snowpark.functions.pi() Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.43.0/src/snowflake/snowpark/_functions/scalar_functions.py#L4627-L4642)¶
Returns the mathematical constant pi (approximately 3.141592654).
- Returns:
The value of pi.
- Return type:
- Examples::
>>> df = session.create_dataframe([[1]], schema=["dummy"]) >>> df.select(pi().alias("pi_value")).collect() [Row(PI_VALUE=3.141592653589793)]