[−][src]Type Definition polars::datatypes::Utf8Chunked
type Utf8Chunked = ChunkedArray<Utf8Type>;
Implementations
impl Utf8Chunked
[src]
pub fn str_lengths(&self) -> UInt32Chunked
[src]
strings
only.Get the length of the string values.
pub fn contains(&self, pat: &str) -> Result<BooleanChunked>
[src]
strings
only.Check if strings contain a regex pattern
pub fn replace(&self, pat: &str, val: &str) -> Result<Utf8Chunked>
[src]
strings
only.Replace the leftmost (sub)string by a regex pattern
pub fn replace_all(&self, pat: &str, val: &str) -> Result<Utf8Chunked>
[src]
strings
only.Replace all (sub)strings by a regex pattern
pub fn to_lowercase(&self) -> Utf8Chunked
[src]
strings
only.Modify the strings to their lowercase equivalent
pub fn to_uppercase(&self) -> Utf8Chunked
[src]
strings
only.Modify the strings to their uppercase equivalent
pub fn concat(&self, other: &Utf8Chunked) -> Self
[src]
strings
only.Concat with the values from a second Utf8Chunked
impl Utf8Chunked
[src]
pub fn as_date32(&self, fmt: Option<&str>) -> Result<Date32Chunked>
[src]
temporal
only.pub fn as_date64(&self, fmt: Option<&str>) -> Result<Date64Chunked>
[src]
temporal
only.Trait Implementations
impl Add<&'_ ChunkedArray<Utf8Type>> for &Utf8Chunked
[src]
type Output = Utf8Chunked
The resulting type after applying the +
operator.
pub fn add(self, rhs: Self) -> Self::Output
[src]
impl Add<&'_ str> for &Utf8Chunked
[src]
type Output = Utf8Chunked
The resulting type after applying the +
operator.
pub fn add(self, rhs: &str) -> Self::Output
[src]
impl Add<ChunkedArray<Utf8Type>> for Utf8Chunked
[src]
type Output = Utf8Chunked
The resulting type after applying the +
operator.
pub fn add(self, rhs: Self) -> Self::Output
[src]
impl<'a> ChunkApply<'a, &'a str, String> for Utf8Chunked
[src]
pub fn apply<F>(&'a self, f: F) -> Self where
F: Fn(&'a str) -> String + Copy,
[src]
F: Fn(&'a str) -> String + Copy,
pub fn apply_with_idx<F>(&'a self, f: F) -> Self where
F: Fn((usize, &'a str)) -> String + Copy,
[src]
F: Fn((usize, &'a str)) -> String + Copy,
pub fn apply_with_idx_on_opt<F>(&'a self, f: F) -> Self where
F: Fn((usize, Option<&'a str>)) -> Option<String> + Copy,
[src]
F: Fn((usize, Option<&'a str>)) -> Option<String> + Copy,
impl ChunkApplyKernel<GenericStringArray<i32>> for Utf8Chunked
[src]
pub fn apply_kernel<F>(&self, f: F) -> Self where
F: Fn(&StringArray) -> ArrayRef,
[src]
F: Fn(&StringArray) -> ArrayRef,
pub fn apply_kernel_cast<F, S>(&self, f: F) -> ChunkedArray<S> where
F: Fn(&StringArray) -> ArrayRef,
S: PolarsDataType,
[src]
F: Fn(&StringArray) -> ArrayRef,
S: PolarsDataType,
impl ChunkCast for Utf8Chunked
[src]
pub fn cast<N>(&self) -> Result<ChunkedArray<N>> where
N: PolarsDataType,
[src]
N: PolarsDataType,
impl ChunkCompare<&'_ ChunkedArray<Utf8Type>> for Utf8Chunked
[src]
pub fn eq_missing(&self, rhs: &Utf8Chunked) -> BooleanChunked
[src]
pub fn eq(&self, rhs: &Utf8Chunked) -> BooleanChunked
[src]
pub fn neq(&self, rhs: &Utf8Chunked) -> BooleanChunked
[src]
pub fn gt(&self, rhs: &Utf8Chunked) -> BooleanChunked
[src]
pub fn gt_eq(&self, rhs: &Utf8Chunked) -> BooleanChunked
[src]
pub fn lt(&self, rhs: &Utf8Chunked) -> BooleanChunked
[src]
pub fn lt_eq(&self, rhs: &Utf8Chunked) -> BooleanChunked
[src]
impl ChunkCompare<&'_ str> for Utf8Chunked
[src]
pub fn eq_missing(&self, rhs: &str) -> BooleanChunked
[src]
pub fn eq(&self, rhs: &str) -> BooleanChunked
[src]
pub fn neq(&self, rhs: &str) -> BooleanChunked
[src]
pub fn gt(&self, rhs: &str) -> BooleanChunked
[src]
pub fn gt_eq(&self, rhs: &str) -> BooleanChunked
[src]
pub fn lt(&self, rhs: &str) -> BooleanChunked
[src]
pub fn lt_eq(&self, rhs: &str) -> BooleanChunked
[src]
impl ChunkExpandAtIndex<Utf8Type> for Utf8Chunked
[src]
pub fn expand_at_index(&self, index: usize, length: usize) -> Utf8Chunked
[src]
impl ChunkFillNone for Utf8Chunked
[src]
pub fn fill_none(&self, strategy: FillNoneStrategy) -> Result<Self>
[src]
impl ChunkFillNoneValue<&'_ str> for Utf8Chunked
[src]
pub fn fill_none_with_value(&self, value: &str) -> Result<Self>
[src]
impl ChunkFilter<Utf8Type> for Utf8Chunked
[src]
pub fn filter(&self, filter: &BooleanChunked) -> Result<ChunkedArray<Utf8Type>>
[src]
impl<'a> ChunkFull<&'a str> for Utf8Chunked
[src]
pub fn full(name: &str, value: &'a str, length: usize) -> Self
[src]
pub fn full_null(name: &str, length: usize) -> Self
[src]
impl ChunkOps for Utf8Chunked
[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<Utf8Type> for Utf8Chunked
[src]
impl<'a> ChunkSet<'a, &'a str, String> for Utf8Chunked
[src]
pub fn set_at_idx<T: AsTakeIndex>(
&'a self,
idx: &T,
opt_value: Option<&'a str>
) -> Result<Self> where
Self: Sized,
[src]
&'a self,
idx: &T,
opt_value: Option<&'a str>
) -> Result<Self> where
Self: Sized,
pub fn set_at_idx_with<T: AsTakeIndex, F>(
&'a self,
idx: &T,
f: F
) -> Result<Self> where
Self: Sized,
F: Fn(Option<&'a str>) -> Option<String>,
[src]
&'a self,
idx: &T,
f: F
) -> Result<Self> where
Self: Sized,
F: Fn(Option<&'a str>) -> Option<String>,
pub fn set(
&'a self,
mask: &BooleanChunked,
opt_value: Option<&'a str>
) -> Result<Self> where
Self: Sized,
[src]
&'a self,
mask: &BooleanChunked,
opt_value: Option<&'a str>
) -> Result<Self> where
Self: Sized,
pub fn set_with<F>(&'a self, mask: &BooleanChunked, f: F) -> Result<Self> where
Self: Sized,
F: Fn(Option<&'a str>) -> Option<String>,
[src]
Self: Sized,
F: Fn(Option<&'a str>) -> Option<String>,
impl ChunkShift<Utf8Type> for Utf8Chunked
[src]
impl ChunkShiftFill<Utf8Type, Option<&'_ str>> for Utf8Chunked
[src]
pub fn shift_and_fill(
&self,
periods: i32,
fill_value: Option<&str>
) -> Result<Utf8Chunked>
[src]
&self,
periods: i32,
fill_value: Option<&str>
) -> Result<Utf8Chunked>
impl ChunkSort<Utf8Type> for Utf8Chunked
[src]
pub fn sort(&self, reverse: bool) -> Utf8Chunked
[src]
pub fn sort_in_place(&mut self, reverse: bool)
[src]
pub fn argsort(&self, reverse: bool) -> Vec<usize>
[src]
impl ChunkTake for Utf8Chunked
[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 where
Self: Sized,
[src]
&self,
indices: impl Iterator<Item = Option<usize>>,
capacity: Option<usize>
) -> Self where
Self: Sized,
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<Utf8Type> for Utf8Chunked
[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 value_counts(&self) -> Result<DataFrame>
[src]
pub fn n_unique(&self) -> Result<usize>
[src]
impl ChunkVar<String> for Utf8Chunked
[src]
impl ChunkWindow for Utf8Chunked
[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<Utf8Type> for Utf8Chunked
[src]
pub fn zip_with(
&self,
mask: &BooleanChunked,
other: &Utf8Chunked
) -> Result<Utf8Chunked>
[src]
&self,
mask: &BooleanChunked,
other: &Utf8Chunked
) -> Result<Utf8Chunked>
pub fn zip_with_series(
&self,
mask: &BooleanChunked,
other: &Series
) -> Result<ChunkedArray<Utf8Type>>
[src]
&self,
mask: &BooleanChunked,
other: &Series
) -> Result<ChunkedArray<Utf8Type>>
impl Debug for Utf8Chunked
[src]
impl Downcast<GenericStringArray<i32>> for Utf8Chunked
[src]
pub fn downcast_chunks(&self) -> Vec<&StringArray>
[src]
impl<'a> FromIterator<&'a &'a str> for Utf8Chunked
[src]
pub fn from_iter<I: IntoIterator<Item = &'a &'a str>>(iter: I) -> Self
[src]
impl<'a> FromIterator<&'a Option<&'a str>> for Utf8Chunked
[src]
pub fn from_iter<I: IntoIterator<Item = &'a Option<&'a str>>>(iter: I) -> Self
[src]
impl<'a> FromIterator<&'a str> for Utf8Chunked
[src]
pub fn from_iter<I: IntoIterator<Item = &'a str>>(iter: I) -> Self
[src]
impl<'a> FromIterator<Cow<'a, str>> for Utf8Chunked
[src]
pub fn from_iter<I: IntoIterator<Item = Cow<'a, str>>>(iter: I) -> Self
[src]
impl<'a> FromIterator<Option<&'a str>> for Utf8Chunked
[src]
pub fn from_iter<I: IntoIterator<Item = Option<&'a str>>>(iter: I) -> Self
[src]
impl<'a> FromIterator<Option<Cow<'a, str>>> for Utf8Chunked
[src]
impl FromIterator<Option<String>> for Utf8Chunked
[src]
pub fn from_iter<I: IntoIterator<Item = Option<String>>>(iter: I) -> Self
[src]
impl FromIterator<String> for Utf8Chunked
[src]
pub fn from_iter<I: IntoIterator<Item = String>>(iter: I) -> Self
[src]
impl<'a> FromParallelIterator<&'a str> for Utf8Chunked
[src]
pub fn from_par_iter<I: IntoParallelIterator<Item = &'a str>>(iter: I) -> Self
[src]
impl<'a> FromParallelIterator<Option<&'a str>> for Utf8Chunked
[src]
pub fn from_par_iter<I: IntoParallelIterator<Item = Option<&'a str>>>(
iter: I
) -> Self
[src]
iter: I
) -> Self
impl FromParallelIterator<Option<String>> for Utf8Chunked
[src]
pub fn from_par_iter<I: IntoParallelIterator<Item = Option<String>>>(
iter: I
) -> Self
[src]
iter: I
) -> Self
impl FromParallelIterator<String> for Utf8Chunked
[src]
pub fn from_par_iter<I: IntoParallelIterator<Item = String>>(iter: I) -> Self
[src]
impl IntoGroupTuples for Utf8Chunked
[src]
impl<'a> IntoIterator for &'a Utf8Chunked
[src]
type Item = Option<&'a str>
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 Utf8Chunked
[src]
type Item = &'a str
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 Utf8Chunked
[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 = Utf8ParIterDispatcher<'a>
The parallel iterator type that will be created.
type Item = Option<&'a str>
The type of item that the parallel iterator will produce.
pub fn into_par_iter(self) -> Self::Iter
[src]
impl IntoSeries for Utf8Chunked
[src]
pub fn into_series(self) -> Series
[src]
impl<'a> IntoTakeRandom<'a> for &'a Utf8Chunked
[src]
type Item = &'a str
type TakeRandom = Box<dyn TakeRandom<Item = Self::Item> + 'a>
pub fn take_rand(&self) -> Self::TakeRandom
[src]
impl<S> NewChunkedArray<Utf8Type, S> for Utf8Chunked where
S: AsRef<str>,
[src]
S: AsRef<str>,
pub fn new_from_slice(name: &str, v: &[S]) -> Self
[src]
pub fn new_from_opt_slice(name: &str, opt_v: &[Option<S>]) -> Self
[src]
pub fn new_from_opt_iter(
name: &str,
it: impl Iterator<Item = Option<S>>
) -> Self
[src]
name: &str,
it: impl Iterator<Item = Option<S>>
) -> Self
pub fn new_from_iter(name: &str, it: impl Iterator<Item = S>) -> Self
[src]
Create a new ChunkedArray from an iterator.