snowflake.snowpark.functions.atan¶
- snowflake.snowpark.functions.atan(e: Union[Column, str]) Column [source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/functions.py#L2091-L2108)¶
Computes the inverse tangent (arc tangent) of its input; the result is a number in the interval [-pi, pi].
- Example::
>>> from snowflake.snowpark.types import DecimalType >>> df = session.create_dataframe([[1]], schema=["deg"]) >>> df.select(atan(col("deg")).cast(DecimalType(scale=3)).alias("result")).show() ------------ |"RESULT" | ------------ |0.785 | ------------