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

snowflake.snowpark.functions.ceil

snowflake.snowpark.functions.ceil(e: ColumnOrName) Column[source]

Returns values from the specified column rounded to the nearest equal or larger integer.

Example:

>>> df = session.create_dataframe([135.135, -975.975], schema=["a"])
>>> df.select(ceil(df["a"]).alias("ceil")).collect()
[Row(CEIL=136.0), Row(CEIL=-975.0)]
Copy