snowflake.snowpark.functions.max_by¶
- snowflake.snowpark.functions.max_by(col_to_return: Union[Column, str], col_containing_maximum: Union[Column, str], maximum_number_of_values_to_return: Optional[int] = None) Column[source]¶
Finds the row(s) containing the maximum value for a column and returns the value of another column in that row.
Example: