snowflake.snowpark.functions.min¶
- snowflake.snowpark.functions.min(e: Union[Column, str]) Column [source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/functions.py#L1064-L1077)¶
Returns the minimum value for the records in a group. NULL values are ignored unless all the records are NULL, in which case a NULL value is returned.
Example:
>>> df = session.create_dataframe([1, 3, 10, 1, 3], schema=["x"]) >>> df.select(min("x").as_("x")).collect() [Row(X=1)]