Trait polars_core::chunked_array::ops::ChunkCompare   
source · pub trait ChunkCompare<Rhs> {
    type Item;
    // Required methods
    fn equal(&self, rhs: Rhs) -> Self::Item;
    fn equal_missing(&self, rhs: Rhs) -> Self::Item;
    fn not_equal(&self, rhs: Rhs) -> Self::Item;
    fn not_equal_missing(&self, rhs: Rhs) -> Self::Item;
    fn gt(&self, rhs: Rhs) -> Self::Item;
    fn gt_eq(&self, rhs: Rhs) -> Self::Item;
    fn lt(&self, rhs: Rhs) -> Self::Item;
    fn lt_eq(&self, rhs: Rhs) -> Self::Item;
}Expand description
Compare Series and ChunkedArray’s and get a boolean mask that
can be used to filter rows.
§Example
use polars_core::prelude::*;
fn filter_all_ones(df: &DataFrame) -> PolarsResult<DataFrame> {
    let mask = df
    .column("column_a")?
    .equal(1)?;
    df.filter(&mask)
}Required Associated Types§
Required Methods§
sourcefn equal_missing(&self, rhs: Rhs) -> Self::Item
 
fn equal_missing(&self, rhs: Rhs) -> Self::Item
Check for equality where None == None.
sourcefn not_equal_missing(&self, rhs: Rhs) -> Self::Item
 
fn not_equal_missing(&self, rhs: Rhs) -> Self::Item
Check for inequality where None == None.
Implementors§
source§impl ChunkCompare<&str> for CategoricalChunked
Available on crate feature dtype-categorical only. 
impl ChunkCompare<&str> for CategoricalChunked
Available on crate feature 
dtype-categorical only.type Item = Result<ChunkedArray<BooleanType>, PolarsError>
source§impl ChunkCompare<&str> for Series
 
impl ChunkCompare<&str> for Series
type Item = Result<ChunkedArray<BooleanType>, PolarsError>
source§impl ChunkCompare<&str> for StringChunked
 
impl ChunkCompare<&str> for StringChunked
type Item = ChunkedArray<BooleanType>
source§impl ChunkCompare<&CategoricalChunked> for CategoricalChunked
Available on crate feature dtype-categorical only. 
impl ChunkCompare<&CategoricalChunked> for CategoricalChunked
Available on crate feature 
dtype-categorical only.type Item = Result<ChunkedArray<BooleanType>, PolarsError>
source§impl ChunkCompare<&Series> for Series
 
impl ChunkCompare<&Series> for Series
type Item = Result<ChunkedArray<BooleanType>, PolarsError>
source§impl ChunkCompare<&ChunkedArray<BinaryType>> for BinaryChunked
 
impl ChunkCompare<&ChunkedArray<BinaryType>> for BinaryChunked
type Item = ChunkedArray<BooleanType>
source§impl ChunkCompare<&ChunkedArray<BooleanType>> for BooleanChunked
 
impl ChunkCompare<&ChunkedArray<BooleanType>> for BooleanChunked
type Item = ChunkedArray<BooleanType>
source§impl ChunkCompare<&ChunkedArray<ListType>> for ListChunked
 
impl ChunkCompare<&ChunkedArray<ListType>> for ListChunked
type Item = ChunkedArray<BooleanType>
source§impl ChunkCompare<&ChunkedArray<StringType>> for CategoricalChunked
Available on crate feature dtype-categorical only. 
impl ChunkCompare<&ChunkedArray<StringType>> for CategoricalChunked
Available on crate feature 
dtype-categorical only.