Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
zip in datafusion::common::arrow::compute::kernels::zip - Rust
[go: Go Back, main page]

pub fn zip(
    mask: &BooleanArray,
    truthy: &dyn Datum,
    falsy: &dyn Datum
) -> Result<Arc<dyn Array>, ArrowError>
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