snowflake.snowpark.functions.ceil

snowflake.snowpark.functions.ceil(e: Union[Column, str]) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.16.0/src/snowflake/snowpark/functions.py#L1813-L1824)

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
语言: 中文