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>>
[src]
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
Implementors
impl ChunkZip<BooleanType> for BooleanChunked
[src]
impl ChunkZip<BooleanType> for BooleanChunked
[src]fn zip_with(
&self,
mask: &BooleanChunked,
other: &BooleanChunked
) -> Result<BooleanChunked>
[src]
&self,
mask: &BooleanChunked,
other: &BooleanChunked
) -> Result<BooleanChunked>
impl ChunkZip<CategoricalType> for CategoricalChunked
[src]
impl ChunkZip<CategoricalType> for CategoricalChunked
[src]fn zip_with(
&self,
mask: &BooleanChunked,
other: &ChunkedArray<CategoricalType>
) -> Result<ChunkedArray<CategoricalType>>
[src]
&self,
mask: &BooleanChunked,
other: &ChunkedArray<CategoricalType>
) -> Result<ChunkedArray<CategoricalType>>
impl ChunkZip<ListType> for ListChunked
[src]
impl ChunkZip<ListType> for ListChunked
[src]fn zip_with(
&self,
mask: &BooleanChunked,
other: &ChunkedArray<ListType>
) -> Result<ChunkedArray<ListType>>
[src]
&self,
mask: &BooleanChunked,
other: &ChunkedArray<ListType>
) -> Result<ChunkedArray<ListType>>
impl ChunkZip<Utf8Type> for Utf8Chunked
[src]
impl ChunkZip<Utf8Type> for Utf8Chunked
[src]fn zip_with(
&self,
mask: &BooleanChunked,
other: &Utf8Chunked
) -> Result<Utf8Chunked>
[src]
&self,
mask: &BooleanChunked,
other: &Utf8Chunked
) -> Result<Utf8Chunked>
impl<T> ChunkZip<T> for ChunkedArray<T> where
T: PolarsNumericType,
[src]
impl<T> ChunkZip<T> for ChunkedArray<T> where
T: PolarsNumericType,
[src]fn zip_with(
&self,
mask: &BooleanChunked,
other: &ChunkedArray<T>
) -> Result<ChunkedArray<T>>
[src]
&self,
mask: &BooleanChunked,
other: &ChunkedArray<T>
) -> Result<ChunkedArray<T>>
impl<T: PolarsObject> ChunkZip<ObjectType<T>> for ObjectChunked<T>
[src]
impl<T: PolarsObject> ChunkZip<ObjectType<T>> for ObjectChunked<T>
[src]fn zip_with(
&self,
mask: &BooleanChunked,
other: &ChunkedArray<ObjectType<T>>
) -> Result<ChunkedArray<ObjectType<T>>>
[src]
&self,
mask: &BooleanChunked,
other: &ChunkedArray<ObjectType<T>>
) -> Result<ChunkedArray<ObjectType<T>>>