Function arrow::compute::kernels::zip::zip[][src]

pub fn zip(
    mask: &BooleanArray,
    truthy: &dyn Array,
    falsy: &dyn Array
) -> Result<ArrayRef>
Expand description

Zip two arrays by some boolean mask. Where the mask evaluates true values of truthy are taken, where the mask evaluates false values of falsy are taken.

Arguments

  • mask - Boolean values used to determine from which array to take the values.
  • truthy - Values of this array are taken if mask evaluates true
  • falsy - Values of this array are taken if mask evaluates false