Struct polars::datatypes::BooleanType[]

pub struct BooleanType {}

Implementations

impl BooleanType

pub const DATA_TYPE: DataType

Trait Implementations

impl ChunkCumAgg<BooleanType> for ChunkedArray<BooleanType>[src]

fn cum_max(&self, _reverse: bool) -> ChunkedArray<T>[src]

Get an array with the cumulative max computed at every element

fn cum_min(&self, _reverse: bool) -> ChunkedArray<T>[src]

Get an array with the cumulative min computed at every element

fn cum_sum(&self, _reverse: bool) -> ChunkedArray<T>[src]

Get an array with the cumulative sum computed at every element

impl ChunkExpandAtIndex<BooleanType> for ChunkedArray<BooleanType>[src]

pub fn expand_at_index(
    &self,
    index: usize,
    length: usize
) -> ChunkedArray<BooleanType>
[src]

Create a new ChunkedArray filled with values at that index.

impl ChunkFilter<BooleanType> for ChunkedArray<BooleanType>[src]

pub fn filter(
    &self,
    filter: &ChunkedArray<BooleanType>
) -> Result<ChunkedArray<BooleanType>, PolarsError>
[src]

Filter values in the ChunkedArray with a boolean mask. Read more

impl ChunkReverse<BooleanType> for ChunkedArray<BooleanType>[src]

pub fn reverse(&self) -> ChunkedArray<BooleanType>[src]

Return a reversed version of this array.

impl ChunkShift<BooleanType> for ChunkedArray<BooleanType>[src]

pub fn shift(&self, periods: i64) -> ChunkedArray<BooleanType>[src]

impl ChunkShiftFill<BooleanType, Option<bool>> for ChunkedArray<BooleanType>[src]

pub fn shift_and_fill(
    &self,
    periods: i64,
    fill_value: Option<bool>
) -> ChunkedArray<BooleanType>
[src]

Shift the values by a given period and fill the parts that will be empty due to this operation with fill_value. Read more

impl ChunkSort<BooleanType> for ChunkedArray<BooleanType>[src]

pub fn sort(&self, reverse: bool) -> ChunkedArray<BooleanType>[src]

Returned a sorted ChunkedArray.

pub fn sort_in_place(&mut self, reverse: bool)[src]

Sort this array in place.

pub fn argsort(&self, reverse: bool) -> ChunkedArray<UInt32Type>[src]

Retrieve the indexes needed to sort this array.

fn argsort_multiple(
    &self,
    _other: &[Series],
    _reverse: &[bool]
) -> Result<ChunkedArray<UInt32Type>, PolarsError>
[src]

Retrieve the indexes need to sort this and the other arrays.

impl ChunkTakeEvery<BooleanType> for ChunkedArray<BooleanType>[src]

pub fn take_every(&self, n: usize) -> ChunkedArray<BooleanType>[src]

Traverse and collect every nth element in a new array.

impl ChunkUnique<BooleanType> for ChunkedArray<BooleanType>[src]

pub fn unique(&self) -> Result<ChunkedArray<BooleanType>, PolarsError>[src]

Get unique values of a ChunkedArray

pub fn arg_unique(&self) -> Result<ChunkedArray<UInt32Type>, PolarsError>[src]

Get first index of the unique values in a ChunkedArray. This Vec is sorted. Read more

pub fn is_unique(&self) -> Result<ChunkedArray<BooleanType>, PolarsError>[src]

Get a mask of all the unique values.

pub fn is_duplicated(&self) -> Result<ChunkedArray<BooleanType>, PolarsError>[src]

Get a mask of all the duplicated values.

fn n_unique(&self) -> Result<usize, PolarsError>[src]

Number of unique values in the ChunkedArray

fn value_counts(&self) -> Result<DataFrame, PolarsError>[src]

Count the unique values.

impl ChunkZip<BooleanType> for ChunkedArray<BooleanType>[src]

pub fn zip_with(
    &self,
    mask: &ChunkedArray<BooleanType>,
    other: &ChunkedArray<BooleanType>
) -> Result<ChunkedArray<BooleanType>, PolarsError>
[src]

Create a new ChunkedArray with values from self where the mask evaluates true and values from other where the mask evaluates false Read more

impl ChunkedBuilder<bool, BooleanType> for BooleanChunkedBuilder[src]

pub fn append_value(&mut self, v: bool)[src]

Appends a value of type T into the builder

pub fn append_null(&mut self)[src]

Appends a null slot into the builder

pub fn finish(self) -> ChunkedArray<BooleanType>[src]

fn append_option(&mut self, opt_val: Option<N>)[src]

impl Debug for BooleanType

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

impl NewChunkedArray<BooleanType, bool> for ChunkedArray<BooleanType>[src]

pub fn new_from_iter(
    name: &str,
    it: impl Iterator<Item = bool>
) -> ChunkedArray<BooleanType>
[src]

Create a new ChunkedArray from an iterator.

pub fn new_from_slice(name: &str, v: &[bool]) -> ChunkedArray<BooleanType>[src]

pub fn new_from_opt_slice(
    name: &str,
    opt_v: &[Option<bool>]
) -> ChunkedArray<BooleanType>
[src]

pub fn new_from_opt_iter(
    name: &str,
    it: impl Iterator<Item = Option<bool>>
) -> ChunkedArray<BooleanType>
[src]

Create a new ChunkedArray from an iterator.

impl PolarsDataType for BooleanType[src]

impl ToDummies<BooleanType> for ChunkedArray<BooleanType>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T, U> Cast<U> for T where
    U: FromCast<T>, 

pub fn cast(self) -> U

Numeric cast from self to T.

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> FromCast<T> for T

pub fn from_cast(t: T) -> T

Numeric cast from T to Self.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Pointable for T

pub const ALIGN: usize

The alignment of pointer.

type Init = T

The type for initializers.

pub unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more

pub unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more

pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more

pub unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V