polars_arrow::compute::take

Function take_unchecked

Source
pub unsafe fn take_unchecked(
    values: &dyn Array,
    indices: &IdxArr,
) -> Box<dyn Array>
Available on crate feature compute_take only.
Expand description

Returns a new Array with only indices at indices. Null indices are taken as nulls. The returned array has a length equal to indices.len().

§Safety

Doesn’t do bound checks