slice_min

Keep rows with the smallest values

Returns the rows with the lowest values in an ordering column.

Parameters

Returns

A DataFrame with the bottom n rows by the ordering column.

Examples

slice_min(df, $score)
slice_min(df, $score, n = 5)