Struct polars_core::datatypes::Utf8Type
source · [−]pub struct Utf8Type {}
Trait Implementations
sourceimpl ChunkExpandAtIndex<Utf8Type> for Utf8Chunked
impl ChunkExpandAtIndex<Utf8Type> for Utf8Chunked
sourcefn expand_at_index(&self, index: usize, length: usize) -> Utf8Chunked
fn expand_at_index(&self, index: usize, length: usize) -> Utf8Chunked
Create a new ChunkedArray filled with values at that index.
sourceimpl ChunkFilter<Utf8Type> for Utf8Chunked
impl ChunkFilter<Utf8Type> for Utf8Chunked
sourcefn filter(&self, filter: &BooleanChunked) -> Result<ChunkedArray<Utf8Type>>
fn filter(&self, filter: &BooleanChunked) -> Result<ChunkedArray<Utf8Type>>
Filter values in the ChunkedArray with a boolean mask. Read more
sourceimpl ChunkReverse<Utf8Type> for Utf8Chunked
impl ChunkReverse<Utf8Type> for Utf8Chunked
sourceimpl ChunkShift<Utf8Type> for Utf8Chunked
impl ChunkShift<Utf8Type> for Utf8Chunked
sourceimpl ChunkShiftFill<Utf8Type, Option<&'_ str>> for Utf8Chunked
impl ChunkShiftFill<Utf8Type, Option<&'_ str>> for Utf8Chunked
sourcefn shift_and_fill(&self, periods: i64, fill_value: Option<&str>) -> Utf8Chunked
fn shift_and_fill(&self, periods: i64, fill_value: Option<&str>) -> Utf8Chunked
Shift the values by a given period and fill the parts that will be empty due to this operation
with fill_value
. Read more
sourceimpl ChunkSort<Utf8Type> for Utf8Chunked
impl ChunkSort<Utf8Type> for Utf8Chunked
sourcefn argsort_multiple(&self, other: &[Series], reverse: &[bool]) -> Result<IdxCa>
fn argsort_multiple(&self, other: &[Series], reverse: &[bool]) -> Result<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<Utf8Type>
sourcefn sort(&self, reverse: bool) -> Utf8Chunked
fn sort(&self, reverse: bool) -> Utf8Chunked
Returned a sorted ChunkedArray
.
sourcefn argsort(&self, options: SortOptions) -> IdxCa
fn argsort(&self, options: SortOptions) -> IdxCa
Retrieve the indexes needed to sort this array.
sourceimpl ChunkTakeEvery<Utf8Type> for Utf8Chunked
impl ChunkTakeEvery<Utf8Type> for Utf8Chunked
sourcefn take_every(&self, n: usize) -> Utf8Chunked
fn take_every(&self, n: usize) -> Utf8Chunked
Traverse and collect every nth element in a new array.
sourceimpl ChunkUnique<Utf8Type> for Utf8Chunked
impl ChunkUnique<Utf8Type> for Utf8Chunked
sourcefn arg_unique(&self) -> Result<IdxCa>
fn arg_unique(&self) -> Result<IdxCa>
Get first index of the unique values in a ChunkedArray
.
This Vec is sorted. Read more
sourcefn is_unique(&self) -> Result<BooleanChunked>
fn is_unique(&self) -> Result<BooleanChunked>
Get a mask of all the unique values.
sourcefn is_duplicated(&self) -> Result<BooleanChunked>
fn is_duplicated(&self) -> Result<BooleanChunked>
Get a mask of all the duplicated values.
sourceimpl ChunkZip<Utf8Type> for Utf8Chunked
impl ChunkZip<Utf8Type> for Utf8Chunked
sourcefn zip_with(
&self,
mask: &BooleanChunked,
other: &Utf8Chunked
) -> Result<Utf8Chunked>
fn zip_with(
&self,
mask: &BooleanChunked,
other: &Utf8Chunked
) -> Result<Utf8Chunked>
Create a new ChunkedArray with values from self where the mask evaluates true
and values
from other
where the mask evaluates false
Read more
sourceimpl ChunkedBuilder<Cow<'_, str>, Utf8Type> for Utf8ChunkedBuilderCow
impl ChunkedBuilder<Cow<'_, str>, Utf8Type> for Utf8ChunkedBuilderCow
fn append_value(&mut self, val: Cow<'_, str>)
fn append_null(&mut self)
fn finish(self) -> ChunkedArray<Utf8Type>
fn shrink_to_fit(&mut self)
fn append_option(&mut self, opt_val: Option<N>)
sourceimpl IsFirst<Utf8Type> for Utf8Chunked
impl IsFirst<Utf8Type> for Utf8Chunked
fn is_first(&self) -> Result<BooleanChunked>
sourceimpl<S> NewChunkedArray<Utf8Type, S> for Utf8Chunked where
S: AsRef<str>,
impl<S> NewChunkedArray<Utf8Type, S> for Utf8Chunked where
S: AsRef<str>,
sourcefn from_iter_values(name: &str, it: impl Iterator<Item = S>) -> Self
fn from_iter_values(name: &str, it: impl Iterator<Item = S>) -> Self
Create a new ChunkedArray from an iterator.
fn from_slice(name: &str, v: &[S]) -> Self
fn from_slice_options(name: &str, opt_v: &[Option<S>]) -> Self
sourcefn from_iter_options(name: &str, it: impl Iterator<Item = Option<S>>) -> Self
fn from_iter_options(name: &str, it: impl Iterator<Item = Option<S>>) -> Self
Create a new ChunkedArray from an iterator.
sourceimpl ToDummies<Utf8Type> for Utf8Chunked
impl ToDummies<Utf8Type> for Utf8Chunked
fn to_dummies(&self) -> Result<DataFrame>
impl PolarsSingleType for Utf8Type
Auto Trait Implementations
impl RefUnwindSafe for Utf8Type
impl Send for Utf8Type
impl Sync for Utf8Type
impl Unpin for Utf8Type
impl UnwindSafe for Utf8Type
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more