[][src]Type Definition polars::datatypes::BooleanChunked

type BooleanChunked = ChunkedArray<BooleanType>;

Implementations

impl BooleanChunked[src]

pub fn arg_true(&self) -> UInt32Chunked[src]

impl BooleanChunked[src]

pub fn all_true(&self) -> bool[src]

impl BooleanChunked[src]

pub fn all_false(&self) -> bool[src]

impl BooleanChunked[src]

pub fn rand_bernoulli(name: &str, length: usize, p: f64) -> Result<Self>[src]

This is supported on crate feature random only.

Create ChunkedArray with samples from a Bernoulli distribution.

Trait Implementations

impl BitAnd<&'_ ChunkedArray<BooleanType>> for &BooleanChunked[src]

type Output = BooleanChunked

The resulting type after applying the & operator.

impl BitAnd<ChunkedArray<BooleanType>> for BooleanChunked[src]

type Output = BooleanChunked

The resulting type after applying the & operator.

impl BitOr<&'_ ChunkedArray<BooleanType>> for &BooleanChunked[src]

type Output = BooleanChunked

The resulting type after applying the | operator.

impl BitOr<ChunkedArray<BooleanType>> for BooleanChunked[src]

type Output = BooleanChunked

The resulting type after applying the | operator.

impl ChunkAgg<u32> for BooleanChunked[src]

Booleans are casted to 1 or 0.

pub fn sum(&self) -> Option<u32>[src]

Returns None if the array is empty or only contains null values.

impl<'a> ChunkApply<'a, bool, bool> for BooleanChunked[src]

impl ChunkCast for BooleanChunked[src]

impl ChunkCompare<&'_ ChunkedArray<BooleanType>> for BooleanChunked[src]

impl ChunkFillNone for BooleanChunked[src]

impl ChunkFillNoneValue<bool> for BooleanChunked[src]

impl ChunkFilter<BooleanType> for BooleanChunked[src]

impl ChunkOps for BooleanChunked[src]

impl ChunkReverse<BooleanType> for BooleanChunked[src]

impl<'a> ChunkSet<'a, bool, bool> for BooleanChunked[src]

impl ChunkShift<BooleanType> for BooleanChunked[src]

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

impl ChunkSort<BooleanType> for BooleanChunked[src]

impl ChunkTake for BooleanChunked[src]

impl ChunkUnique<BooleanType> for BooleanChunked[src]

impl ChunkVar<bool> for BooleanChunked[src]

impl ChunkWindow for BooleanChunked[src]

impl ChunkZip<BooleanType> for BooleanChunked[src]

impl FromIterator<bool> for BooleanChunked[src]

impl FromParallelIterator<bool> for BooleanChunked[src]

impl IntoGroupTuples for BooleanChunked[src]

impl<'a> IntoIterator for &'a BooleanChunked[src]

type Item = Option<bool>

The type of the elements being iterated over.

type IntoIter = Box<dyn PolarsIterator<Item = Self::Item> + 'a>

Which kind of iterator are we turning this into?

pub fn into_iter(self) -> Self::IntoIter[src]

Decides which iterator fits best the current chunked array. The decision are based on the number of chunks and the existence of null values.

impl<'a> IntoNoNullIterator for &'a BooleanChunked[src]

type Item = bool

type IntoIter = Box<dyn PolarsIterator<Item = Self::Item> + 'a>

pub fn into_no_null_iter(self) -> Self::IntoIter[src]

Decides which iterator fits best the current no null chunked array. The decision are based on the number of chunks.

impl<'a> IntoParallelIterator for &'a BooleanChunked[src]

This is supported on crate feature parallel only.

Convert $ca_iter into a ParallelIterator using the most efficient ParallelIterator implementation for the given $ca_type.

  • If $ca_type has only a chunk and has no null values, it uses $single_chunk_return_option.
  • If $ca_type has only a chunk and does have null values, it uses $single_chunk_null_check_return_option.
  • If $ca_type has many chunks and has no null values, it uses $many_chunk_return_option.
  • If $ca_type has many chunks and does have null values, it uses $many_chunk_null_check_return_option.

type Iter = BooleanParIterDispatcher<'a>

The parallel iterator type that will be created.

type Item = Option<bool>

The type of item that the parallel iterator will produce.

impl IntoSeries for BooleanChunked[src]

impl<'a> IntoTakeRandom<'a> for &'a BooleanChunked[src]

type Item = bool

type TakeRandom = Box<dyn TakeRandom<Item = Self::Item> + 'a>

impl Not for &BooleanChunked[src]

type Output = BooleanChunked

The resulting type after applying the ! operator.

impl Not for BooleanChunked[src]

type Output = BooleanChunked

The resulting type after applying the ! operator.

impl NumOpsDispatch for BooleanChunked[src]

impl ToDummies<BooleanType> for BooleanChunked[src]

impl ZipOuterJoinColumn for BooleanChunked[src]