Keep rows with the largest values
Returns the rows with the highest values in an ordering column.
df (DataFrame): The input data
frame.
order_by (Column): The column to
order by.
n (Int): = 1 Number of rows to
return.
A DataFrame with the top n rows by the ordering column.
slice_max(df, $score)
slice_max(df, $score, n = 5)