snowflake.snowpark.functions.floor¶
- snowflake.snowpark.functions.floor(e: ColumnOrName) Column [source] (https://github.com/snowflakedb/snowpark-python/blob/release-v1.3.0/src/snowflake/snowpark/functions.py#L1311-L1323)¶
Returns values from the specified column rounded to the nearest equal or smaller integer.
Examples:
>>> df = session.create_dataframe([135.135, -975.975], schema=["a"]) >>> df.select(floor(df["a"]).alias("floor")).collect() [Row(FLOOR=135.0), Row(FLOOR=-976.0)]