You are viewing documentation about an older version (1.9.0). View latest version

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