Skip to main content

column_unary

Function column_unary 

Source
pub fn column_unary(
    column: &NdColumn,
    kernel: impl Fn(&NdArrowArray) -> Result<NdArrowArray>,
    keep_attributes: bool,
) -> Result<NdColumn>
Expand description

Apply an elementwise unary kernel to all rows in one call, for example column_unary(&c, compute::sqrt, false).

The kernel must keep the number of values. keep_attributes follows the attribute rule of the kernel: true for cast and fill_null, false for math functions.