Struct polars::prelude::BinaryType
source · pub struct BinaryType {}
Trait Implementations§
source§impl ChunkExpandAtIndex<BinaryType> for ChunkedArray<BinaryType>
impl ChunkExpandAtIndex<BinaryType> for ChunkedArray<BinaryType>
source§fn new_from_index(
&self,
index: usize,
length: usize
) -> ChunkedArray<BinaryType>
fn new_from_index( &self, index: usize, length: usize ) -> ChunkedArray<BinaryType>
Create a new ChunkedArray filled with values at that index.
source§impl ChunkFilter<BinaryType> for ChunkedArray<BinaryType>
impl ChunkFilter<BinaryType> for ChunkedArray<BinaryType>
source§fn filter(
&self,
filter: &ChunkedArray<BooleanType>
) -> Result<ChunkedArray<BinaryType>, PolarsError>
fn filter( &self, filter: &ChunkedArray<BooleanType> ) -> Result<ChunkedArray<BinaryType>, PolarsError>
Filter values in the ChunkedArray with a boolean mask. Read more
source§impl ChunkShift<BinaryType> for ChunkedArray<BinaryType>
impl ChunkShift<BinaryType> for ChunkedArray<BinaryType>
fn shift(&self, periods: i64) -> ChunkedArray<BinaryType>
source§impl ChunkShiftFill<BinaryType, Option<&[u8]>> for ChunkedArray<BinaryType>
impl ChunkShiftFill<BinaryType, Option<&[u8]>> for ChunkedArray<BinaryType>
source§fn shift_and_fill(
&self,
periods: i64,
fill_value: Option<&[u8]>
) -> ChunkedArray<BinaryType>
fn shift_and_fill( &self, periods: i64, fill_value: Option<&[u8]> ) -> ChunkedArray<BinaryType>
Shift the values by a given period and fill the parts that will be empty due to this operation
with
fill_value
.source§impl ChunkSort<BinaryType> for ChunkedArray<BinaryType>
impl ChunkSort<BinaryType> for ChunkedArray<BinaryType>
source§fn arg_sort_multiple(
&self,
options: &SortMultipleOptions
) -> Result<ChunkedArray<UInt32Type>, PolarsError>
fn arg_sort_multiple( &self, options: &SortMultipleOptions ) -> Result<ChunkedArray<UInt32Type>, PolarsError>
Panics
This function is very opinionated. On the implementation of ChunkedArray<T>
for numeric types,
we assume that all numeric Series
are of the same type.
In this case we assume that all numeric Series
are f64
types. The caller needs to
uphold this contract. If not, it will panic.
fn sort_with(&self, options: SortOptions) -> ChunkedArray<BinaryType>
source§fn sort(&self, descending: bool) -> ChunkedArray<BinaryType>
fn sort(&self, descending: bool) -> ChunkedArray<BinaryType>
Returned a sorted
ChunkedArray
.source§fn arg_sort(&self, options: SortOptions) -> ChunkedArray<UInt32Type>
fn arg_sort(&self, options: SortOptions) -> ChunkedArray<UInt32Type>
Retrieve the indexes needed to sort this array.
source§impl ChunkUnique<BinaryType> for ChunkedArray<BinaryType>
impl ChunkUnique<BinaryType> for ChunkedArray<BinaryType>
source§fn unique(&self) -> Result<ChunkedArray<BinaryType>, PolarsError>
fn unique(&self) -> Result<ChunkedArray<BinaryType>, PolarsError>
Get unique values of a ChunkedArray
source§fn arg_unique(&self) -> Result<ChunkedArray<UInt32Type>, PolarsError>
fn arg_unique(&self) -> Result<ChunkedArray<UInt32Type>, PolarsError>
Get first index of the unique values in a
ChunkedArray
.
This Vec is sorted.source§impl ChunkZip<BinaryType> for ChunkedArray<BinaryType>
impl ChunkZip<BinaryType> for ChunkedArray<BinaryType>
source§fn zip_with(
&self,
mask: &ChunkedArray<BooleanType>,
other: &ChunkedArray<BinaryType>
) -> Result<ChunkedArray<BinaryType>, PolarsError>
fn zip_with( &self, mask: &ChunkedArray<BooleanType>, other: &ChunkedArray<BinaryType> ) -> Result<ChunkedArray<BinaryType>, PolarsError>
Create a new ChunkedArray with values from self where the mask evaluates
true
and values
from other
where the mask evaluates false
source§impl ChunkedBuilder<Cow<'_, [u8]>, BinaryType> for BinaryChunkedBuilderCow
impl ChunkedBuilder<Cow<'_, [u8]>, BinaryType> for BinaryChunkedBuilderCow
fn append_value(&mut self, val: Cow<'_, [u8]>)
fn append_null(&mut self)
fn finish(self) -> ChunkedArray<BinaryType>
fn shrink_to_fit(&mut self)
fn append_option(&mut self, opt_val: Option<N>)
source§impl Clone for BinaryType
impl Clone for BinaryType
source§fn clone(&self) -> BinaryType
fn clone(&self) -> BinaryType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<B> NewChunkedArray<BinaryType, B> for ChunkedArray<BinaryType>where
B: AsRef<[u8]>,
impl<B> NewChunkedArray<BinaryType, B> for ChunkedArray<BinaryType>where B: AsRef<[u8]>,
source§fn from_iter_values(
name: &str,
it: impl Iterator<Item = B>
) -> ChunkedArray<BinaryType>
fn from_iter_values( name: &str, it: impl Iterator<Item = B> ) -> ChunkedArray<BinaryType>
Create a new ChunkedArray from an iterator.
fn from_slice(name: &str, v: &[B]) -> ChunkedArray<BinaryType>
fn from_slice_options( name: &str, opt_v: &[Option<B>] ) -> ChunkedArray<BinaryType>
source§fn from_iter_options(
name: &str,
it: impl Iterator<Item = Option<B>>
) -> ChunkedArray<BinaryType>
fn from_iter_options( name: &str, it: impl Iterator<Item = Option<B>> ) -> ChunkedArray<BinaryType>
Create a new ChunkedArray from an iterator.
source§impl NumOpsDispatchInner for BinaryType
impl NumOpsDispatchInner for BinaryType
fn add_to( lhs: &ChunkedArray<BinaryType>, rhs: &Series ) -> Result<Series, PolarsError>
fn subtract( lhs: &ChunkedArray<Self>, rhs: &Series ) -> Result<Series, PolarsError>
fn multiply( lhs: &ChunkedArray<Self>, rhs: &Series ) -> Result<Series, PolarsError>
fn divide(lhs: &ChunkedArray<Self>, rhs: &Series) -> Result<Series, PolarsError>
fn remainder( lhs: &ChunkedArray<Self>, rhs: &Series ) -> Result<Series, PolarsError>
source§impl PolarsDataType for BinaryType
impl PolarsDataType for BinaryType
impl Copy for BinaryType
Auto Trait Implementations§
impl RefUnwindSafe for BinaryType
impl Send for BinaryType
impl Sync for BinaryType
impl Unpin for BinaryType
impl UnwindSafe for BinaryType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more