snowflake.snowpark.functions.abs

snowflake.snowpark.functions.abs(e: Union[Column, str]) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/functions.py#L2033-L2048)

Returns the absolute value of a numeric expression.

Example::
>>> df = session.create_dataframe([[-1]], schema=["a"])
>>> df.select(abs(col("a")).alias("result")).show()
------------
|"RESULT"  |
------------
|1         |
------------
Copy
Language: English