Struct polars_core::datatypes::BinaryType
source · pub struct BinaryType {}
Available on crate feature
dtype-binary
only.Trait Implementations§
source§impl ChunkExpandAtIndex<BinaryType> for BinaryChunked
impl ChunkExpandAtIndex<BinaryType> for BinaryChunked
source§fn new_from_index(&self, index: usize, length: usize) -> BinaryChunked
fn new_from_index(&self, index: usize, length: usize) -> BinaryChunked
Create a new ChunkedArray filled with values at that index.
source§impl ChunkFilter<BinaryType> for BinaryChunked
impl ChunkFilter<BinaryType> for BinaryChunked
source§fn filter(
&self,
filter: &BooleanChunked
) -> PolarsResult<ChunkedArray<BinaryType>>
fn filter(
&self,
filter: &BooleanChunked
) -> PolarsResult<ChunkedArray<BinaryType>>
Filter values in the ChunkedArray with a boolean mask. Read more
source§impl ChunkReverse<BinaryType> for BinaryChunked
impl ChunkReverse<BinaryType> for BinaryChunked
source§impl ChunkShift<BinaryType> for BinaryChunked
impl ChunkShift<BinaryType> for BinaryChunked
source§impl ChunkShiftFill<BinaryType, Option<&[u8]>> for BinaryChunked
impl ChunkShiftFill<BinaryType, Option<&[u8]>> for BinaryChunked
source§fn shift_and_fill(&self, periods: i64, fill_value: Option<&[u8]>) -> BinaryChunked
fn shift_and_fill(&self, periods: i64, fill_value: Option<&[u8]>) -> BinaryChunked
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 BinaryChunked
impl ChunkSort<BinaryType> for BinaryChunked
source§fn argsort_multiple(
&self,
other: &[Series],
reverse: &[bool]
) -> PolarsResult<IdxCa>
fn argsort_multiple(
&self,
other: &[Series],
reverse: &[bool]
) -> PolarsResult<IdxCa>
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, reverse: bool) -> BinaryChunked
fn sort(&self, reverse: bool) -> BinaryChunked
Returned a sorted
ChunkedArray
.source§fn argsort(&self, options: SortOptions) -> IdxCa
fn argsort(&self, options: SortOptions) -> IdxCa
Retrieve the indexes needed to sort this array.
source§impl ChunkTakeEvery<BinaryType> for BinaryChunked
impl ChunkTakeEvery<BinaryType> for BinaryChunked
source§fn take_every(&self, n: usize) -> BinaryChunked
fn take_every(&self, n: usize) -> BinaryChunked
Traverse and collect every nth element in a new array.
source§impl ChunkUnique<BinaryType> for BinaryChunked
impl ChunkUnique<BinaryType> for BinaryChunked
source§fn unique(&self) -> PolarsResult<Self>
fn unique(&self) -> PolarsResult<Self>
Get unique values of a ChunkedArray
source§fn arg_unique(&self) -> PolarsResult<IdxCa>
fn arg_unique(&self) -> PolarsResult<IdxCa>
Get first index of the unique values in a
ChunkedArray
.
This Vec is sorted.source§fn is_unique(&self) -> PolarsResult<BooleanChunked>
fn is_unique(&self) -> PolarsResult<BooleanChunked>
Get a mask of all the unique values.
source§fn is_duplicated(&self) -> PolarsResult<BooleanChunked>
fn is_duplicated(&self) -> PolarsResult<BooleanChunked>
Get a mask of all the duplicated values.
source§fn n_unique(&self) -> PolarsResult<usize>
fn n_unique(&self) -> PolarsResult<usize>
Number of unique values in the
ChunkedArray
source§fn mode(&self) -> PolarsResult<Self>
fn mode(&self) -> PolarsResult<Self>
Available on crate feature
mode
only.The most occurring value(s). Can return multiple Values
source§impl ChunkZip<BinaryType> for BinaryChunked
Available on crate feature zip_with
only.
impl ChunkZip<BinaryType> for BinaryChunked
Available on crate feature
zip_with
only.source§fn zip_with(
&self,
mask: &BooleanChunked,
other: &BinaryChunked
) -> PolarsResult<BinaryChunked>
fn zip_with(
&self,
mask: &BooleanChunked,
other: &BinaryChunked
) -> PolarsResult<BinaryChunked>
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 IsFirst<BinaryType> for BinaryChunked
Available on crate feature is_first
only.
impl IsFirst<BinaryType> for BinaryChunked
Available on crate feature
is_first
only.fn is_first(&self) -> PolarsResult<BooleanChunked>
source§impl<B> NewChunkedArray<BinaryType, B> for BinaryChunkedwhere
B: AsRef<[u8]>,
impl<B> NewChunkedArray<BinaryType, B> for BinaryChunkedwhere
B: AsRef<[u8]>,
source§fn from_iter_values(name: &str, it: impl Iterator<Item = B>) -> Self
fn from_iter_values(name: &str, it: impl Iterator<Item = B>) -> Self
Create a new ChunkedArray from an iterator.