Struct polars_core::datatypes::Utf8Type
source · pub struct Utf8Type {}
Trait Implementations§
source§impl ChunkExpandAtIndex<Utf8Type> for Utf8Chunked
impl ChunkExpandAtIndex<Utf8Type> for Utf8Chunked
source§fn new_from_index(&self, index: usize, length: usize) -> Utf8Chunked
fn new_from_index(&self, index: usize, length: usize) -> Utf8Chunked
Create a new ChunkedArray filled with values at that index.
source§impl ChunkFilter<Utf8Type> for Utf8Chunked
impl ChunkFilter<Utf8Type> for Utf8Chunked
source§fn filter(&self, filter: &BooleanChunked) -> PolarsResult<ChunkedArray<Utf8Type>>
fn filter(&self, filter: &BooleanChunked) -> PolarsResult<ChunkedArray<Utf8Type>>
Filter values in the ChunkedArray with a boolean mask. Read more
source§impl ChunkReverse<Utf8Type> for Utf8Chunked
impl ChunkReverse<Utf8Type> for Utf8Chunked
source§impl ChunkShift<Utf8Type> for Utf8Chunked
impl ChunkShift<Utf8Type> for Utf8Chunked
source§impl ChunkShiftFill<Utf8Type, Option<&str>> for Utf8Chunked
impl ChunkShiftFill<Utf8Type, Option<&str>> for Utf8Chunked
source§fn 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
.source§impl ChunkSort<Utf8Type> for Utf8Chunked
impl ChunkSort<Utf8Type> for Utf8Chunked
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<Utf8Type>
source§fn sort(&self, reverse: bool) -> Utf8Chunked
fn sort(&self, reverse: bool) -> Utf8Chunked
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<Utf8Type> for Utf8Chunked
impl ChunkTakeEvery<Utf8Type> for Utf8Chunked
source§fn take_every(&self, n: usize) -> Utf8Chunked
fn take_every(&self, n: usize) -> Utf8Chunked
Traverse and collect every nth element in a new array.
source§impl ChunkUnique<Utf8Type> for Utf8Chunked
impl ChunkUnique<Utf8Type> for Utf8Chunked
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<Utf8Type> for Utf8Chunked
Available on crate feature zip_with
only.
impl ChunkZip<Utf8Type> for Utf8Chunked
Available on crate feature
zip_with
only.source§fn zip_with(
&self,
mask: &BooleanChunked,
other: &Utf8Chunked
) -> PolarsResult<Utf8Chunked>
fn zip_with(
&self,
mask: &BooleanChunked,
other: &Utf8Chunked
) -> PolarsResult<Utf8Chunked>
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<'_, 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>)
source§impl IsFirst<Utf8Type> for Utf8Chunked
Available on crate feature is_first
only.
impl IsFirst<Utf8Type> for Utf8Chunked
Available on crate feature
is_first
only.fn is_first(&self) -> PolarsResult<BooleanChunked>
source§impl<S> NewChunkedArray<Utf8Type, S> for Utf8Chunkedwhere
S: AsRef<str>,
impl<S> NewChunkedArray<Utf8Type, S> for Utf8Chunkedwhere
S: AsRef<str>,
source§fn 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.