pub struct StringType {}
Trait Implementations§
Source§impl ChunkExpandAtIndex<StringType> for StringChunked
impl ChunkExpandAtIndex<StringType> for StringChunked
Source§fn new_from_index(&self, index: usize, length: usize) -> StringChunked
fn new_from_index(&self, index: usize, length: usize) -> StringChunked
Create a new ChunkedArray filled with values at that index.
Source§impl ChunkFilter<StringType> for StringChunked
impl ChunkFilter<StringType> for StringChunked
Source§fn filter(
&self,
filter: &BooleanChunked,
) -> PolarsResult<ChunkedArray<StringType>>
fn filter( &self, filter: &BooleanChunked, ) -> PolarsResult<ChunkedArray<StringType>>
Filter values in the ChunkedArray with a boolean mask. Read more
Source§impl ChunkShift<StringType> for StringChunked
impl ChunkShift<StringType> for StringChunked
Source§impl ChunkShiftFill<StringType, Option<&str>> for StringChunked
impl ChunkShiftFill<StringType, Option<&str>> for StringChunked
Source§fn shift_and_fill(
&self,
periods: i64,
fill_value: Option<&str>,
) -> StringChunked
fn shift_and_fill( &self, periods: i64, fill_value: Option<&str>, ) -> StringChunked
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 StringChunked
impl ChunkSort<StringType> for StringChunked
Source§fn arg_sort_multiple(
&self,
by: &[Column],
options: &SortMultipleOptions,
) -> PolarsResult<IdxCa>
fn arg_sort_multiple( &self, by: &[Column], options: &SortMultipleOptions, ) -> 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<StringType>
Source§fn sort(&self, descending: bool) -> StringChunked
fn sort(&self, descending: bool) -> StringChunked
Returned a sorted
ChunkedArray
.Source§fn arg_sort(&self, options: SortOptions) -> IdxCa
fn arg_sort(&self, options: SortOptions) -> IdxCa
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 StringChunked
impl<S> NewChunkedArray<StringType, S> for StringChunked
Source§fn from_iter_values(name: PlSmallStr, it: impl Iterator<Item = S>) -> Self
fn from_iter_values(name: PlSmallStr, it: impl Iterator<Item = S>) -> Self
Create a new ChunkedArray from an iterator.
fn from_slice(name: PlSmallStr, v: &[S]) -> Self
fn from_slice_options(name: PlSmallStr, opt_v: &[Option<S>]) -> Self
Source§fn from_iter_options(
name: PlSmallStr,
it: impl Iterator<Item = Option<S>>,
) -> Self
fn from_iter_options( name: PlSmallStr, it: impl Iterator<Item = Option<S>>, ) -> Self
Create a new ChunkedArray from an iterator.
Source§impl NumOpsDispatchInner for StringType
impl NumOpsDispatchInner for StringType
fn add_to(lhs: &StringChunked, rhs: &Series) -> PolarsResult<Series>
fn subtract(lhs: &ChunkedArray<Self>, rhs: &Series) -> PolarsResult<Series>
fn multiply(lhs: &ChunkedArray<Self>, rhs: &Series) -> PolarsResult<Series>
fn divide(lhs: &ChunkedArray<Self>, rhs: &Series) -> PolarsResult<Series>
fn remainder(lhs: &ChunkedArray<Self>, rhs: &Series) -> PolarsResult<Series>
Source§impl PolarsDataType for StringType
impl PolarsDataType for StringType
type Physical<'a> = &'a str
type OwnedPhysical = String
type ZeroablePhysical<'a> = Option<&'a str>
type Array = BinaryViewArrayGeneric<str>
type IsNested = FalseT
type HasViews = TrueT
type IsStruct = FalseT
type IsObject = FalseT
type IsLogical = FalseT
fn get_dtype() -> DataType
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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