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

snowflake.snowpark.functions.abs

snowflake.snowpark.functions.abs(e: ColumnOrName) 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