snowflake.snowpark.functions.min_by¶
- snowflake.snowpark.functions.min_by(col_to_return: Union[Column, str], col_containing_minimum: Union[Column, str], maximum_number_of_values_to_return: Optional[int] = None) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.29.1/snowpark-python/src/snowflake/snowpark/functions.py#L11083-L11115)¶
Finds the row(s) containing the minimum value for a column and returns the value of another column in that row.
Example: