snowflake.snowpark.functions.abs¶

snowflake.snowpark.functions.abs(e: Union[Column, str]) → Column[source]¶

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