Trait polars_core::chunked_array::ops::ChunkZip [−][src]
pub trait ChunkZip<T> {
fn zip_with(
&self,
mask: &BooleanChunked,
other: &ChunkedArray<T>
) -> Result<ChunkedArray<T>>;
}
Expand description
Combine 2 ChunkedArrays based on some predicate.
Required methods
fn zip_with(
&self,
mask: &BooleanChunked,
other: &ChunkedArray<T>
) -> Result<ChunkedArray<T>>
fn zip_with(
&self,
mask: &BooleanChunked,
other: &ChunkedArray<T>
) -> Result<ChunkedArray<T>>
Create a new ChunkedArray with values from self where the mask evaluates true
and values
from other
where the mask evaluates false
Implementors
impl ChunkZip<CategoricalType> for CategoricalChunked
This is supported on crate feature
dtype-categorical
only.impl<T: PolarsObject> ChunkZip<ObjectType<T>> for ObjectChunked<T>
This is supported on crate feature
object
only.