Trait polars::chunked_array::ops::ChunkZip

source ·
pub trait ChunkZip<T>
where T: PolarsDataType,
{ // Required method fn zip_with( &self, mask: &ChunkedArray<BooleanType>, other: &ChunkedArray<T> ) -> Result<ChunkedArray<T>, PolarsError>; }
Expand description

Combine two ChunkedArray based on some predicate.

Required Methods§

source

fn zip_with( &self, mask: &ChunkedArray<BooleanType>, other: &ChunkedArray<T> ) -> Result<ChunkedArray<T>, PolarsError>

Create a new ChunkedArray with values from self where the mask evaluates true and values from other where the mask evaluates false

Implementors§

source§

impl<T> ChunkZip<T> for ChunkedArray<T>
where T: PolarsDataType, <T as PolarsDataType>::Array: for<'a> IfThenElseKernel<Scalar<'a> = <T as PolarsDataType>::Physical<'a>>, ChunkedArray<T>: ChunkExpandAtIndex<T>,