pub trait IsIn {
    fn is_in(&self, _other: &Series) -> PolarsResult<BooleanChunked> { ... }
}
Available on crate feature is_in only.
Expand description

Check if element is member of list array

Provided Methods§

Check if elements of this array are in the right Series, or List values of the right Series.

Examples found in repository?
src/series/implementations/boolean.rs (line 379)
378
379
380
    fn is_in(&self, other: &Series) -> PolarsResult<BooleanChunked> {
        IsIn::is_in(&self.0, other)
    }
More examples
Hide additional examples
src/series/implementations/utf8.rs (line 333)
332
333
334
    fn is_in(&self, other: &Series) -> PolarsResult<BooleanChunked> {
        IsIn::is_in(&self.0, other)
    }
src/series/implementations/categorical.rs (line 395)
393
394
395
396
    fn is_in(&self, other: &Series) -> PolarsResult<BooleanChunked> {
        _check_categorical_src(self.dtype(), other.dtype())?;
        self.0.logical().is_in(&other.to_physical_repr())
    }

Implementors§