Struct polars::datatypes::StringType
source · pub struct StringType {}
Trait Implementations§
source§impl ChunkExpandAtIndex<StringType> for ChunkedArray<StringType>
impl ChunkExpandAtIndex<StringType> for ChunkedArray<StringType>
source§fn new_from_index(
&self,
index: usize,
length: usize
) -> ChunkedArray<StringType>
fn new_from_index( &self, index: usize, length: usize ) -> ChunkedArray<StringType>
Create a new ChunkedArray filled with values at that index.
source§impl ChunkFilter<StringType> for ChunkedArray<StringType>
impl ChunkFilter<StringType> for ChunkedArray<StringType>
source§fn filter(
&self,
filter: &ChunkedArray<BooleanType>
) -> Result<ChunkedArray<StringType>, PolarsError>
fn filter( &self, filter: &ChunkedArray<BooleanType> ) -> Result<ChunkedArray<StringType>, PolarsError>
Filter values in the ChunkedArray with a boolean mask. Read more
source§impl ChunkShift<StringType> for ChunkedArray<StringType>
impl ChunkShift<StringType> for ChunkedArray<StringType>
fn shift(&self, periods: i64) -> ChunkedArray<StringType>
source§impl ChunkShiftFill<StringType, Option<&str>> for ChunkedArray<StringType>
impl ChunkShiftFill<StringType, Option<&str>> for ChunkedArray<StringType>
source§fn shift_and_fill(
&self,
periods: i64,
fill_value: Option<&str>
) -> ChunkedArray<StringType>
fn shift_and_fill( &self, periods: i64, fill_value: Option<&str> ) -> ChunkedArray<StringType>
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<StringType> for ChunkedArray<StringType>
impl ChunkSort<StringType> for ChunkedArray<StringType>
source§fn arg_sort_multiple(
&self,
by: &[Series],
options: &SortMultipleOptions
) -> Result<ChunkedArray<UInt32Type>, PolarsError>
fn arg_sort_multiple( &self, by: &[Series], 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<StringType>
source§fn sort(&self, descending: bool) -> ChunkedArray<StringType>
fn sort(&self, descending: bool) -> ChunkedArray<StringType>
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 Clone for StringType
impl Clone for StringType
source§fn clone(&self) -> StringType
fn clone(&self) -> StringType
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<S> NewChunkedArray<StringType, S> for ChunkedArray<StringType>
impl<S> NewChunkedArray<StringType, S> for ChunkedArray<StringType>
source§fn from_iter_values(
name: &str,
it: impl Iterator<Item = S>
) -> ChunkedArray<StringType>
fn from_iter_values( name: &str, it: impl Iterator<Item = S> ) -> ChunkedArray<StringType>
Create a new ChunkedArray from an iterator.
fn from_slice(name: &str, v: &[S]) -> ChunkedArray<StringType>
fn from_slice_options( name: &str, opt_v: &[Option<S>] ) -> ChunkedArray<StringType>
source§fn from_iter_options(
name: &str,
it: impl Iterator<Item = Option<S>>
) -> ChunkedArray<StringType>
fn from_iter_options( name: &str, it: impl Iterator<Item = Option<S>> ) -> ChunkedArray<StringType>
Create a new ChunkedArray from an iterator.
source§impl NumOpsDispatchInner for StringType
impl NumOpsDispatchInner for StringType
fn add_to( lhs: &ChunkedArray<StringType>, 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 StringType
impl PolarsDataType for StringType
impl Copy for StringType
Auto Trait Implementations§
impl Freeze for StringType
impl RefUnwindSafe for StringType
impl Send for StringType
impl Sync for StringType
impl Unpin for StringType
impl UnwindSafe for StringType
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more