Skip to main content

_arg_bottom_k

Function _arg_bottom_k 

Source
pub fn _arg_bottom_k(
    k: usize,
    by_column: &[Column],
    sort_options: &mut SortMultipleOptions,
) -> PolarsResult<NoNull<IdxCa>>
Expand description

Return the indices of the bottom k elements.

Similar to .argsort() then .slice(0, k) but with a more efficient implementation.