Skip to main content

column_binary

Function column_binary 

Source
pub fn column_binary(
    a: &NdColumn,
    b: &NdColumn,
    kernel: impl Fn(&NdArrowArray, &NdArrowArray) -> Result<NdArrowArray>,
) -> Result<NdColumn>
Expand description

Apply an elementwise binary kernel to two columns, for example compute::add.

When every row has the same dimensions in both columns, the kernel runs once on the two values children. Otherwise it runs per row, with broadcasting. A null row in either column gives a null row.