[−][src]Type Definition polars::datatypes::BooleanChunked
type BooleanChunked = ChunkedArray<BooleanType>;
Implementations
impl BooleanChunked
[src]
pub fn arg_true(&self) -> UInt32Chunked
[src]
impl BooleanChunked
[src]
impl BooleanChunked
[src]
impl BooleanChunked
[src]
pub fn rand_bernoulli(name: &str, length: usize, p: f64) -> Result<Self>
[src]
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.
pub fn bitand(self, rhs: Self) -> Self::Output
[src]
impl BitAnd<ChunkedArray<BooleanType>> for BooleanChunked
[src]
type Output = BooleanChunked
The resulting type after applying the &
operator.
pub fn bitand(self, rhs: Self) -> Self::Output
[src]
impl BitOr<&'_ ChunkedArray<BooleanType>> for &BooleanChunked
[src]
type Output = BooleanChunked
The resulting type after applying the |
operator.
pub fn bitor(self, rhs: Self) -> Self::Output
[src]
impl BitOr<ChunkedArray<BooleanType>> for BooleanChunked
[src]
type Output = BooleanChunked
The resulting type after applying the |
operator.
pub fn bitor(self, rhs: Self) -> Self::Output
[src]
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.
pub fn min(&self) -> Option<u32>
[src]
pub fn max(&self) -> Option<u32>
[src]
pub fn mean(&self) -> Option<u32>
[src]
pub fn median(&self) -> Option<u32>
[src]
pub fn quantile(&self, quantile: f64) -> Result<Option<u32>>
[src]
impl<'a> ChunkApply<'a, bool, bool> for BooleanChunked
[src]
pub fn apply<F>(&self, f: F) -> Self where
F: Fn(bool) -> bool + Copy,
[src]
F: Fn(bool) -> bool + Copy,
pub fn apply_with_idx<F>(&'a self, f: F) -> Self where
F: Fn((usize, bool)) -> bool + Copy,
[src]
F: Fn((usize, bool)) -> bool + Copy,
pub fn apply_with_idx_on_opt<F>(&'a self, f: F) -> Self where
F: Fn((usize, Option<bool>)) -> Option<bool> + Copy,
[src]
F: Fn((usize, Option<bool>)) -> Option<bool> + Copy,
impl ChunkCast for BooleanChunked
[src]
pub fn cast<N>(&self) -> Result<ChunkedArray<N>> where
N: PolarsDataType,
[src]
N: PolarsDataType,
impl ChunkCompare<&'_ ChunkedArray<BooleanType>> for BooleanChunked
[src]
pub fn eq_missing(&self, rhs: &BooleanChunked) -> BooleanChunked
[src]
pub fn eq(&self, rhs: &BooleanChunked) -> BooleanChunked
[src]
pub fn neq(&self, rhs: &BooleanChunked) -> BooleanChunked
[src]
pub fn gt(&self, rhs: &BooleanChunked) -> BooleanChunked
[src]
pub fn gt_eq(&self, rhs: &BooleanChunked) -> BooleanChunked
[src]
pub fn lt(&self, rhs: &BooleanChunked) -> BooleanChunked
[src]
pub fn lt_eq(&self, rhs: &BooleanChunked) -> BooleanChunked
[src]
impl ChunkFillNone for BooleanChunked
[src]
pub fn fill_none(&self, strategy: FillNoneStrategy) -> Result<Self>
[src]
impl ChunkFillNoneValue<bool> for BooleanChunked
[src]
pub fn fill_none_with_value(&self, value: bool) -> Result<Self>
[src]
impl ChunkFilter<BooleanType> for BooleanChunked
[src]
pub fn filter(
&self,
filter: &BooleanChunked
) -> Result<ChunkedArray<BooleanType>>
[src]
&self,
filter: &BooleanChunked
) -> Result<ChunkedArray<BooleanType>>
impl ChunkOps for BooleanChunked
[src]
pub fn rechunk(&self, chunk_lengths: Option<&[usize]>) -> Result<Self>
[src]
pub fn optional_rechunk<A>(&self, rhs: &ChunkedArray<A>) -> Result<Option<Self>>
[src]
impl ChunkReverse<BooleanType> for BooleanChunked
[src]
impl<'a> ChunkSet<'a, bool, bool> for BooleanChunked
[src]
pub fn set_at_idx<I: AsTakeIndex>(
&'a self,
idx: &I,
value: Option<bool>
) -> Result<Self>
[src]
&'a self,
idx: &I,
value: Option<bool>
) -> Result<Self>
pub fn set_at_idx_with<I: AsTakeIndex, F>(
&'a self,
idx: &I,
f: F
) -> Result<Self> where
F: Fn(Option<bool>) -> Option<bool>,
[src]
&'a self,
idx: &I,
f: F
) -> Result<Self> where
F: Fn(Option<bool>) -> Option<bool>,
pub fn set(&'a self, mask: &BooleanChunked, value: Option<bool>) -> Result<Self>
[src]
pub fn set_with<F>(&'a self, mask: &BooleanChunked, f: F) -> Result<Self> where
F: Fn(Option<bool>) -> Option<bool>,
[src]
F: Fn(Option<bool>) -> Option<bool>,
impl ChunkShift<BooleanType> for BooleanChunked
[src]
impl ChunkShiftFill<BooleanType, Option<bool>> for BooleanChunked
[src]
pub fn shift_and_fill(
&self,
periods: i32,
fill_value: Option<bool>
) -> Result<BooleanChunked>
[src]
&self,
periods: i32,
fill_value: Option<bool>
) -> Result<BooleanChunked>
impl ChunkSort<BooleanType> for BooleanChunked
[src]
pub fn sort(&self, reverse: bool) -> BooleanChunked
[src]
pub fn sort_in_place(&mut self, reverse: bool)
[src]
pub fn argsort(&self, reverse: bool) -> Vec<usize>
[src]
impl ChunkTake for BooleanChunked
[src]
pub fn take(
&self,
indices: impl Iterator<Item = usize>,
capacity: Option<usize>
) -> Self where
Self: Sized,
[src]
&self,
indices: impl Iterator<Item = usize>,
capacity: Option<usize>
) -> Self where
Self: Sized,
pub unsafe fn take_unchecked(
&self,
indices: impl Iterator<Item = usize>,
capacity: Option<usize>
) -> Self
[src]
&self,
indices: impl Iterator<Item = usize>,
capacity: Option<usize>
) -> Self
pub fn take_opt(
&self,
indices: impl Iterator<Item = Option<usize>>,
capacity: Option<usize>
) -> Self
[src]
&self,
indices: impl Iterator<Item = Option<usize>>,
capacity: Option<usize>
) -> Self
pub unsafe fn take_opt_unchecked(
&self,
indices: impl Iterator<Item = Option<usize>>,
capacity: Option<usize>
) -> Self
[src]
&self,
indices: impl Iterator<Item = Option<usize>>,
capacity: Option<usize>
) -> Self
pub fn take_from_single_chunked(&self, idx: &UInt32Chunked) -> Result<Self>
[src]
pub fn take_from_single_chunked_iter(
&self,
indices: impl Iterator<Item = usize>
) -> Result<Self> where
Self: Sized,
[src]
&self,
indices: impl Iterator<Item = usize>
) -> Result<Self> where
Self: Sized,
impl ChunkUnique<BooleanType> for BooleanChunked
[src]
pub fn unique(&self) -> Result<Self>
[src]
pub fn arg_unique(&self) -> Result<Vec<usize>>
[src]
pub fn is_unique(&self) -> Result<BooleanChunked>
[src]
pub fn is_duplicated(&self) -> Result<BooleanChunked>
[src]
pub fn n_unique(&self) -> Result<usize>
[src]
pub fn value_counts(&self) -> Result<DataFrame>
[src]
impl ChunkVar<bool> for BooleanChunked
[src]
impl ChunkWindow for BooleanChunked
[src]
pub fn rolling_sum(
&self,
_window_size: usize,
_weight: Option<&[f64]>,
_ignore_null: bool
) -> Result<Self> where
Self: Sized,
[src]
&self,
_window_size: usize,
_weight: Option<&[f64]>,
_ignore_null: bool
) -> Result<Self> where
Self: Sized,
pub fn rolling_mean(
&self,
_window_size: usize,
_weight: Option<&[f64]>,
_ignore_null: bool
) -> Result<Self> where
Self: Sized,
[src]
&self,
_window_size: usize,
_weight: Option<&[f64]>,
_ignore_null: bool
) -> Result<Self> where
Self: Sized,
pub fn rolling_min(
&self,
_window_size: usize,
_weight: Option<&[f64]>,
_ignore_null: bool
) -> Result<Self> where
Self: Sized,
[src]
&self,
_window_size: usize,
_weight: Option<&[f64]>,
_ignore_null: bool
) -> Result<Self> where
Self: Sized,
pub fn rolling_max(
&self,
_window_size: usize,
_weight: Option<&[f64]>,
_ignore_null: bool
) -> Result<Self> where
Self: Sized,
[src]
&self,
_window_size: usize,
_weight: Option<&[f64]>,
_ignore_null: bool
) -> Result<Self> where
Self: Sized,
impl ChunkZip<BooleanType> for BooleanChunked
[src]
pub fn zip_with(
&self,
mask: &BooleanChunked,
other: &BooleanChunked
) -> Result<BooleanChunked>
[src]
&self,
mask: &BooleanChunked,
other: &BooleanChunked
) -> Result<BooleanChunked>
pub fn zip_with_series(
&self,
mask: &BooleanChunked,
other: &Series
) -> Result<ChunkedArray<BooleanType>>
[src]
&self,
mask: &BooleanChunked,
other: &Series
) -> Result<ChunkedArray<BooleanType>>
impl FromIterator<bool> for BooleanChunked
[src]
pub fn from_iter<I: IntoIterator<Item = bool>>(iter: I) -> Self
[src]
impl FromParallelIterator<bool> for BooleanChunked
[src]
pub fn from_par_iter<I: IntoParallelIterator<Item = bool>>(iter: I) -> Self
[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]
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.
pub fn into_par_iter(self) -> Self::Iter
[src]
impl IntoSeries for BooleanChunked
[src]
pub fn into_series(self) -> Series
[src]
impl<'a> IntoTakeRandom<'a> for &'a BooleanChunked
[src]
type Item = bool
type TakeRandom = Box<dyn TakeRandom<Item = Self::Item> + 'a>
pub fn take_rand(&self) -> Self::TakeRandom
[src]
impl Not for &BooleanChunked
[src]
type Output = BooleanChunked
The resulting type after applying the !
operator.
pub fn not(self) -> Self::Output
[src]
impl Not for BooleanChunked
[src]
type Output = BooleanChunked
The resulting type after applying the !
operator.