Struct polars::datatypes::BooleanType
source · [−]pub struct BooleanType {}
Trait Implementations
Create a new ChunkedArray filled with values at that index.
pub fn filter(
&self,
filter: &ChunkedArray<BooleanType>
) -> Result<ChunkedArray<BooleanType>, PolarsError>
pub fn filter(
&self,
filter: &ChunkedArray<BooleanType>
) -> Result<ChunkedArray<BooleanType>, PolarsError>
Filter values in the ChunkedArray with a boolean mask. Read more
Return a reversed version of this array.
pub fn shift_and_fill(
&self,
periods: i64,
fill_value: Option<bool>
) -> ChunkedArray<BooleanType>
pub fn shift_and_fill(
&self,
periods: i64,
fill_value: Option<bool>
) -> ChunkedArray<BooleanType>
Shift the values by a given period and fill the parts that will be empty due to this operation
with fill_value
. Read more
Returned a sorted ChunkedArray
.
Retrieve the indexes needed to sort this array.
fn argsort_multiple(
&self,
_other: &[Series],
_reverse: &[bool]
) -> Result<ChunkedArray<UInt32Type>, PolarsError>
fn argsort_multiple(
&self,
_other: &[Series],
_reverse: &[bool]
) -> Result<ChunkedArray<UInt32Type>, PolarsError>
Retrieve the indexes need to sort this and the other arrays.
Traverse and collect every nth element in a new array.
Get unique values of a ChunkedArray
Get first index of the unique values in a ChunkedArray
.
This Vec is sorted. Read more
Get a mask of all the unique values.
Get a mask of all the duplicated values.
Number of unique values in the ChunkedArray
Count the unique values.
The most occurring value(s). Can return multiple Values
pub fn zip_with(
&self,
mask: &ChunkedArray<BooleanType>,
other: &ChunkedArray<BooleanType>
) -> Result<ChunkedArray<BooleanType>, PolarsError>
pub fn zip_with(
&self,
mask: &ChunkedArray<BooleanType>,
other: &ChunkedArray<BooleanType>
) -> Result<ChunkedArray<BooleanType>, PolarsError>
Create a new ChunkedArray with values from self where the mask evaluates true
and values
from other
where the mask evaluates false
Read more
Appends a value of type T
into the builder
Appends a null slot into the builder
pub fn new_from_iter(
name: &str,
it: impl Iterator<Item = bool>
) -> ChunkedArray<BooleanType>
pub fn new_from_iter(
name: &str,
it: impl Iterator<Item = bool>
) -> ChunkedArray<BooleanType>
Create a new ChunkedArray from an iterator.
pub fn new_from_opt_iter(
name: &str,
it: impl Iterator<Item = Option<bool>>
) -> ChunkedArray<BooleanType>
pub fn new_from_opt_iter(
name: &str,
it: impl Iterator<Item = Option<bool>>
) -> ChunkedArray<BooleanType>
Create a new ChunkedArray from an iterator.