Trait polars_core::chunked_array::ops::ChunkZip[][src]

pub trait ChunkZip<T> {
    fn zip_with(
        &self,
        mask: &BooleanChunked,
        other: &ChunkedArray<T>
    ) -> Result<ChunkedArray<T>>;
fn zip_with_series(
        &self,
        mask: &BooleanChunked,
        other: &Series
    ) -> Result<ChunkedArray<T>>; }

Combine 2 ChunkedArrays based on some predicate.

Required methods

fn zip_with(
    &self,
    mask: &BooleanChunked,
    other: &ChunkedArray<T>
) -> Result<ChunkedArray<T>>
[src]

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

fn zip_with_series(
    &self,
    mask: &BooleanChunked,
    other: &Series
) -> Result<ChunkedArray<T>>
[src]

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

Loading content...

Implementors

impl ChunkZip<BooleanType> for BooleanChunked[src]

impl ChunkZip<CategoricalType> for CategoricalChunked[src]

impl ChunkZip<ListType> for ListChunked[src]

impl ChunkZip<Utf8Type> for Utf8Chunked[src]

impl<T> ChunkZip<T> for ChunkedArray<T> where
    T: PolarsNumericType
[src]

Loading content...