Struct polars::prelude::ChunkedArray

source ·
pub struct ChunkedArray<T>
where T: PolarsDataType,
{ /* private fields */ }
Expand description

§ChunkedArray

Every Series contains a ChunkedArray<T>. Unlike Series, ChunkedArrays are typed. This allows us to apply closures to the data and collect the results to a ChunkedArray of the same type T. Below we use an apply to use the cosine function to the values of a ChunkedArray.

fn apply_cosine_and_cast(ca: &Float32Chunked) -> Float64Chunked {
    ca.apply_values_generic(|v| v.cos() as f64)
}

§Conversion between Series and ChunkedArray’s

Conversion from a Series to a ChunkedArray is effortless.

fn to_chunked_array(series: &Series) -> PolarsResult<&Int32Chunked>{
    series.i32()
}

fn to_series(ca: Int32Chunked) -> Series {
    ca.into_series()
}

§Iterators

ChunkedArrays fully support Rust native Iterator and DoubleEndedIterator traits, thereby giving access to all the excellent methods available for Iterators.


fn iter_forward(ca: &Float32Chunked) {
    ca.iter()
        .for_each(|opt_v| println!("{:?}", opt_v))
}

fn iter_backward(ca: &Float32Chunked) {
    ca.iter()
        .rev()
        .for_each(|opt_v| println!("{:?}", opt_v))
}

§Memory layout

ChunkedArrays use Apache Arrow as backend for the memory layout. Arrows memory is immutable which makes it possible to make multiple zero copy (sub)-views from a single array.

To be able to append data, Polars uses chunks to append new memory locations, hence the ChunkedArray<T> data structure. Appends are cheap, because it will not lead to a full reallocation of the whole array (as could be the case with a Rust Vec).

However, multiple chunks in a ChunkedArray will slow down many operations that need random access because we have an extra indirection and indexes need to be mapped to the proper chunk. Arithmetic may also be slowed down by this. When multiplying two ChunkedArrays with different chunk sizes they cannot utilize SIMD for instance.

If you want to have predictable performance (no unexpected re-allocation of memory), it is advised to call the ChunkedArray::rechunk after multiple append operations.

See also ChunkedArray::extend for appends within a chunk.

§Invariants

Implementations§

source§

impl ChunkedArray<BooleanType>

Booleans are cast to 1 or 0.

source

pub fn sum(&self) -> Option<u32>

source

pub fn min(&self) -> Option<bool>

source

pub fn max(&self) -> Option<bool>

source

pub fn mean(&self) -> Option<f64>

source§

impl<T> ChunkedArray<T>
where T: PolarsDataType<IsNested = FalseT>, <T as PolarsDataType>::Physical<'a>: for<'a> TotalOrd,

source

pub fn append(&mut self, other: &ChunkedArray<T>)

Append in place. This is done by adding the chunks of other to this ChunkedArray.

See also extend for appends to the underlying memory

source§

impl<T> ChunkedArray<T>
where T: PolarsDataType,

source

pub fn apply_values_generic<'a, U, K, F>(&'a self, op: F) -> ChunkedArray<U>
where U: PolarsDataType, F: FnMut(<T as PolarsDataType>::Physical<'a>) -> K, <U as PolarsDataType>::Array: ArrayFromIter<K>,

source

pub fn apply_nonnull_values_generic<'a, U, K, F>( &'a self, dtype: DataType, op: F ) -> ChunkedArray<U>

Applies a function only to the non-null elements, propagating nulls.

source

pub fn try_apply_nonnull_values_generic<'a, U, K, F, E>( &'a self, op: F ) -> Result<ChunkedArray<U>, E>

Applies a function only to the non-null elements, propagating nulls.

source

pub fn apply_generic<'a, U, K, F>(&'a self, op: F) -> ChunkedArray<U>

source

pub fn try_apply_generic<'a, U, K, F, E>( &'a self, op: F ) -> Result<ChunkedArray<U>, E>

source§

impl<T> ChunkedArray<T>

source

pub fn cast_and_apply_in_place<F, S>(&self, f: F) -> ChunkedArray<S>

Cast a numeric array to another numeric data type and apply a function in place. This saves an allocation.

source

pub fn apply_in_place<F>(self, f: F) -> ChunkedArray<T>
where F: Fn(<T as PolarsNumericType>::Native) -> <T as PolarsNumericType>::Native + Copy,

Cast a numeric array to another numeric data type and apply a function in place. This saves an allocation.

source§

impl<T> ChunkedArray<T>

source

pub fn apply_mut<F>(&mut self, f: F)
where F: Fn(<T as PolarsNumericType>::Native) -> <T as PolarsNumericType>::Native + Copy,

source§

impl ChunkedArray<StringType>

source

pub fn apply_mut<'a, F>(&'a self, f: F) -> ChunkedArray<StringType>
where F: FnMut(&'a str) -> &'a str,

source

pub fn apply_to_buffer<'a, F>(&'a self, f: F) -> ChunkedArray<StringType>
where F: FnMut(&'a str, &mut String),

Utility that reuses an string buffer to amortize allocations. Prefer this over an apply that returns an owned String.

source§

impl ChunkedArray<BinaryType>

source

pub fn apply_mut<'a, F>(&'a self, f: F) -> ChunkedArray<BinaryType>
where F: FnMut(&'a [u8]) -> &'a [u8],

source§

impl ChunkedArray<Float32Type>

Used to save compilation paths. Use carefully. Although this is safe, if misused it can lead to incorrect results.

source

pub fn apply_as_ints<F>(&self, f: F) -> Series
where F: Fn(&Series) -> Series,

source§

impl ChunkedArray<Float64Type>

source

pub fn apply_as_ints<F>(&self, f: F) -> Series
where F: Fn(&Series) -> Series,

source§

impl<T> ChunkedArray<T>
where T: PolarsDataType,

source

pub fn len(&self) -> usize

Get the length of the ChunkedArray

source

pub fn null_count(&self) -> usize

Return the number of null values in the ChunkedArray.

source

pub unsafe fn set_null_count(&mut self, null_count: u32)

Set the null count directly.

This can be useful after mutably adjusting the validity of the underlying arrays.

§Safety

The new null count must match the total null count of the underlying arrays.

source

pub fn is_empty(&self) -> bool

Check if ChunkedArray is empty.

source

pub fn rechunk(&self) -> ChunkedArray<T>

source

pub fn slice(&self, offset: i64, length: usize) -> ChunkedArray<T>

Slice the array. The chunks are reallocated the underlying data slices are zero copy.

When offset is negative it will be counted from the end of the array. This method will never error, and will slice the best match when offset, or length is out of bounds

source

pub fn limit(&self, num_elements: usize) -> ChunkedArray<T>
where ChunkedArray<T>: Sized,

Take a view of top n elements

source

pub fn head(&self, length: Option<usize>) -> ChunkedArray<T>
where ChunkedArray<T>: Sized,

Get the head of the ChunkedArray

source

pub fn tail(&self, length: Option<usize>) -> ChunkedArray<T>
where ChunkedArray<T>: Sized,

Get the tail of the ChunkedArray

source

pub fn prune_empty_chunks(&mut self)

Remove empty chunks.

source§

impl ChunkedArray<StringType>

source

pub fn to_decimal(&self, infer_length: usize) -> Result<Series, PolarsError>

Convert an StringChunked to a Series of DataType::Decimal. Scale needed for the decimal type are inferred. Parsing is not strict.
Scale inference assumes that all tested strings are well-formed numbers, and may produce unexpected results for scale if this is not the case.

If the decimal precision and scale are already known, consider using the cast method.

source§

impl<T> ChunkedArray<T>

source

pub fn extend(&mut self, other: &ChunkedArray<T>)

Extend the memory backed by this array with the values from other.

Different from ChunkedArray::append which adds chunks to this ChunkedArray extend appends the data from other to the underlying PrimitiveArray and thus may cause a reallocation.

However if this does not cause a reallocation, the resulting data structure will not have any extra chunks and thus will yield faster queries.

Prefer extend over append when you want to do a query after a single append. For instance during online operations where you add n rows and rerun a query.

Prefer append over extend when you want to append many times before doing a query. For instance when you read in multiple files and when to store them in a single DataFrame. In the latter case finish the sequence of append operations with a rechunk.

source§

impl<T> ChunkedArray<T>
where T: PolarsDataType,

source

pub fn for_each<'a, F>(&'a self, op: F)
where F: FnMut(Option<<T as PolarsDataType>::Physical<'a>>),

source§

impl ChunkedArray<FixedSizeListType>

source

pub fn full_null_with_dtype( name: &str, length: usize, inner_dtype: &DataType, width: usize ) -> ChunkedArray<FixedSizeListType>

Available on crate feature dtype-array only.
source§

impl ChunkedArray<ListType>

source

pub fn full_null_with_dtype( name: &str, length: usize, inner_dtype: &DataType ) -> ChunkedArray<ListType>

source§

impl ChunkedArray<UInt32Type>

source

pub fn with_nullable_idx<T, F>(idx: &[NullableIdxSize], f: F) -> T
where F: FnOnce(&ChunkedArray<UInt32Type>) -> T,

source§

impl<T> ChunkedArray<T>
where T: PolarsDataType,

source

pub fn is_null(&self) -> ChunkedArray<BooleanType>

Get a mask of the null values.

source

pub fn is_not_null(&self) -> ChunkedArray<BooleanType>

Get a mask of the valid values.

source§

impl<T> ChunkedArray<T>

source

pub fn rolling_map_float<F>( &self, window_size: usize, f: F ) -> Result<ChunkedArray<T>, PolarsError>
where F: FnMut(&mut ChunkedArray<T>) -> Option<<T as PolarsNumericType>::Native>,

Apply a rolling custom function. This is pretty slow because of dynamic dispatch.

source§

impl ChunkedArray<BinaryType>

source

pub unsafe fn to_string_unchecked(&self) -> ChunkedArray<StringType>

§Safety

String is not validated

source§

impl ChunkedArray<StringType>

source§

impl ChunkedArray<BooleanType>

source

pub fn any(&self) -> bool

Returns whether any of the values in the column are true.

Null values are ignored.

source

pub fn all(&self) -> bool

Returns whether all values in the array are true.

Null values are ignored.

source

pub fn any_kleene(&self) -> Option<bool>

Returns whether any of the values in the column are true.

The output is unknown (None) if the array contains any null values and no true values.

source

pub fn all_kleene(&self) -> Option<bool>

Returns whether all values in the column are true.

The output is unknown (None) if the array contains any null values and no false values.

source§

impl<T> ChunkedArray<T>

source

pub fn is_nan(&self) -> ChunkedArray<BooleanType>

source

pub fn is_not_nan(&self) -> ChunkedArray<BooleanType>

source

pub fn is_finite(&self) -> ChunkedArray<BooleanType>

source

pub fn is_infinite(&self) -> ChunkedArray<BooleanType>

source

pub fn none_to_nan(&self) -> ChunkedArray<T>

Convert missing values to NaN values.

source§

impl<T> ChunkedArray<T>

source

pub fn to_canonical(&self) -> ChunkedArray<T>

source§

impl ChunkedArray<ListType>

source

pub fn par_iter(&self) -> impl ParallelIterator<Item = Option<Series>>

source

pub fn par_iter_indexed(&mut self) -> impl IndexedParallelIterator

source§

impl ChunkedArray<StringType>

source

pub fn par_iter_indexed(&self) -> impl IndexedParallelIterator

source

pub fn par_iter(&self) -> impl ParallelIterator<Item = Option<&str>>

source§

impl<T> ChunkedArray<T>
where T: PolarsDataType,

source

pub fn iter(&self) -> impl PolarsIterator

source§

impl<T> ChunkedArray<T>

source

pub fn to_ndarray( &self ) -> Result<ArrayBase<ViewRepr<&<T as PolarsNumericType>::Native>, Dim<[usize; 1]>>, PolarsError>

If data is aligned in a single chunk and has no Null values a zero copy view is returned as an ndarray

source§

impl ChunkedArray<ListType>

source

pub fn to_ndarray<N>( &self ) -> Result<ArrayBase<OwnedRepr<<N as PolarsNumericType>::Native>, Dim<[usize; 2]>>, PolarsError>

If all nested Series have the same length, a 2 dimensional ndarray::Array is returned.

source§

impl ChunkedArray<FixedSizeListType>

source

pub fn amortized_iter( &self ) -> AmortizedListIter<'_, impl Iterator<Item = Option<Box<dyn Array>>>>

This is an iterator over a ArrayChunked that save allocations. A Series is: 1. Arc<ChunkedArray> ChunkedArray is: 2. Vec< 3. ArrayRef>

The ArrayRef we indicated with 3. will be updated during iteration. The Series will be pinned in memory, saving an allocation for

  1. Arc<..>
  2. Vec<…>
§Warning

Though memory safe in the sense that it will not read unowned memory, UB, or memory leaks this function still needs precautions. The returned should never be cloned or taken longer than a single iteration, as every call on next of the iterator will change the contents of that Series.

§Safety

The lifetime of AmortSeries is bound to the iterator. Keeping it alive longer than the iterator is UB.

source

pub fn amortized_iter_with_name( &self, name: &str ) -> AmortizedListIter<'_, impl Iterator<Item = Option<Box<dyn Array>>>>

This is an iterator over a ArrayChunked that save allocations. A Series is: 1. Arc<ChunkedArray> ChunkedArray is: 2. Vec< 3. ArrayRef>

The ArrayRef we indicated with 3. will be updated during iteration. The Series will be pinned in memory, saving an allocation for

  1. Arc<..>
  2. Vec<…>

If the returned AmortSeries is cloned, the local copy will be replaced and a new container will be set.

source

pub fn try_apply_amortized_to_list<F>( &self, f: F ) -> Result<ChunkedArray<ListType>, PolarsError>

source

pub unsafe fn apply_amortized_same_type<F>( &self, f: F ) -> ChunkedArray<FixedSizeListType>
where F: FnMut(AmortSeries) -> Series,

Apply a closure F to each array.

§Safety

Return series of F must has the same dtype and number of elements as input.

source

pub unsafe fn try_apply_amortized_same_type<F>( &self, f: F ) -> Result<ChunkedArray<FixedSizeListType>, PolarsError>

Try apply a closure F to each array.

§Safety

Return series of F must has the same dtype and number of elements as input if it is Ok.

source

pub unsafe fn zip_and_apply_amortized_same_type<'a, T, F>( &'a self, ca: &'a ChunkedArray<T>, f: F ) -> ChunkedArray<FixedSizeListType>

Zip with a ChunkedArray then apply a binary function F elementwise.

§Safety
source

pub fn apply_amortized_generic<F, K, V>(&self, f: F) -> ChunkedArray<V>

Apply a closure F elementwise.

source

pub fn try_apply_amortized_generic<F, K, V>( &self, f: F ) -> Result<ChunkedArray<V>, PolarsError>

Try apply a closure F elementwise.

source

pub fn for_each_amortized<F>(&self, f: F)

source§

impl ChunkedArray<FixedSizeListType>

source

pub fn inner_dtype(&self) -> &DataType

Get the inner data type of the fixed size list.

source

pub fn width(&self) -> usize

source

pub unsafe fn to_logical(&mut self, inner_dtype: DataType)

§Safety

The caller must ensure that the logical type given fits the physical type of the array.

source

pub fn get_inner(&self) -> Series

Get the inner values as Series

source

pub fn apply_to_inner( &self, func: &dyn Fn(Series) -> Result<Series, PolarsError> ) -> Result<ChunkedArray<FixedSizeListType>, PolarsError>

Ignore the list indices and apply func to the inner type as Series.

source§

impl<T> ChunkedArray<T>
where T: PolarsDataType, <<T as PolarsDataType>::Array as StaticArray>::ValueT<'a>: for<'a> AsRef<[u8]>,

source

pub fn to_bytes_hashes<'a>( &'a self, multithreaded: bool, hb: RandomState ) -> Vec<Vec<BytesHash<'a>>>

source§

impl<T> ChunkedArray<T>
where T: PolarsDataType,

source

pub fn with_chunk<A>(name: &str, arr: A) -> ChunkedArray<T>
where A: Array, T: PolarsDataType<Array = A>,

source

pub fn with_chunk_like<A>(ca: &ChunkedArray<T>, arr: A) -> ChunkedArray<T>
where A: Array, T: PolarsDataType<Array = A>,

source

pub fn from_chunk_iter<I>(name: &str, iter: I) -> ChunkedArray<T>
where I: IntoIterator, T: PolarsDataType<Array = <I as IntoIterator>::Item>, <I as IntoIterator>::Item: Array,

source

pub fn from_chunk_iter_like<I>(ca: &ChunkedArray<T>, iter: I) -> ChunkedArray<T>
where I: IntoIterator, T: PolarsDataType<Array = <I as IntoIterator>::Item>, <I as IntoIterator>::Item: Array,

source

pub fn try_from_chunk_iter<I, A, E>( name: &str, iter: I ) -> Result<ChunkedArray<T>, E>
where I: IntoIterator<Item = Result<A, E>>, T: PolarsDataType<Array = A>, A: Array,

source

pub unsafe fn from_chunks( name: &str, chunks: Vec<Box<dyn Array>> ) -> ChunkedArray<T>

Create a new ChunkedArray from existing chunks.

§Safety

The Arrow datatype of all chunks must match the PolarsDataType T.

source

pub unsafe fn with_chunks(&self, chunks: Vec<Box<dyn Array>>) -> ChunkedArray<T>

§Safety

The Arrow datatype of all chunks must match the PolarsDataType T.

source

pub unsafe fn from_chunks_and_dtype( name: &str, chunks: Vec<Box<dyn Array>>, dtype: DataType ) -> ChunkedArray<T>

Create a new ChunkedArray from existing chunks.

§Safety

The Arrow datatype of all chunks must match the PolarsDataType T.

source

pub fn full_null_like(ca: &ChunkedArray<T>, length: usize) -> ChunkedArray<T>

source§

impl<T> ChunkedArray<T>

source

pub fn from_vec( name: &str, v: Vec<<T as PolarsNumericType>::Native> ) -> ChunkedArray<T>

Create a new ChunkedArray by taking ownership of the Vec. This operation is zero copy.

source

pub fn from_vec_validity( name: &str, values: Vec<<T as PolarsNumericType>::Native>, buffer: Option<Bitmap> ) -> ChunkedArray<T>

Create a new ChunkedArray from a Vec and a validity mask.

source

pub unsafe fn mmap_slice( name: &str, values: &[<T as PolarsNumericType>::Native] ) -> ChunkedArray<T>

Create a temporary ChunkedArray from a slice.

§Safety

The lifetime will be bound to the lifetime of the slice. This will not be checked by the borrowchecker.

source§

impl ChunkedArray<BooleanType>

source

pub unsafe fn mmap_slice( name: &str, values: &[u8], offset: usize, len: usize ) -> ChunkedArray<BooleanType>

Create a temporary ChunkedArray from a slice.

§Safety

The lifetime will be bound to the lifetime of the slice. This will not be checked by the borrowchecker.

source§

impl ChunkedArray<ListType>

source

pub fn amortized_iter( &self ) -> AmortizedListIter<'_, impl Iterator<Item = Option<Box<dyn Array>>>>

This is an iterator over a ListChunked that saves allocations. A Series is: 1. Arc<ChunkedArray> ChunkedArray is: 2. Vec< 3. ArrayRef>

The ArrayRef we indicated with 3. will be updated during iteration. The Series will be pinned in memory, saving an allocation for

  1. Arc<..>
  2. Vec<…>

If the returned AmortSeries is cloned, the local copy will be replaced and a new container will be set.

source

pub fn amortized_iter_with_name( &self, name: &str ) -> AmortizedListIter<'_, impl Iterator<Item = Option<Box<dyn Array>>>>

See amortized_iter.

source

pub fn apply_amortized_generic<F, K, V>(&self, f: F) -> ChunkedArray<V>

Apply a closure F elementwise.

source

pub fn try_apply_amortized_generic<F, K, V>( &self, f: F ) -> Result<ChunkedArray<V>, PolarsError>

source

pub fn for_each_amortized<F>(&self, f: F)

source

pub fn zip_and_apply_amortized<'a, T, I, F>( &'a self, ca: &'a ChunkedArray<T>, f: F ) -> ChunkedArray<ListType>
where T: PolarsDataType, &'a ChunkedArray<T>: IntoIterator<IntoIter = I>, I: TrustedLen<Item = Option<<T as PolarsDataType>::Physical<'a>>>, F: FnMut(Option<AmortSeries>, Option<<T as PolarsDataType>::Physical<'a>>) -> Option<Series>,

Zip with a ChunkedArray then apply a binary function F elementwise.

source

pub fn binary_zip_and_apply_amortized<'a, T, U, F>( &'a self, ca1: &'a ChunkedArray<T>, ca2: &'a ChunkedArray<U>, f: F ) -> ChunkedArray<ListType>

source

pub fn try_zip_and_apply_amortized<'a, T, I, F>( &'a self, ca: &'a ChunkedArray<T>, f: F ) -> Result<ChunkedArray<ListType>, PolarsError>
where T: PolarsDataType, &'a ChunkedArray<T>: IntoIterator<IntoIter = I>, I: TrustedLen<Item = Option<<T as PolarsDataType>::Physical<'a>>>, F: FnMut(Option<AmortSeries>, Option<<T as PolarsDataType>::Physical<'a>>) -> Result<Option<Series>, PolarsError>,

source

pub fn apply_amortized<F>(&self, f: F) -> ChunkedArray<ListType>
where F: FnMut(AmortSeries) -> Series,

Apply a closure F elementwise.

source

pub fn try_apply_amortized<F>( &self, f: F ) -> Result<ChunkedArray<ListType>, PolarsError>

source§

impl ChunkedArray<ListType>

source

pub fn inner_dtype(&self) -> &DataType

Get the inner data type of the list.

source

pub fn set_inner_dtype(&mut self, dtype: DataType)

source

pub fn set_fast_explode(&mut self)

source

pub fn _can_fast_explode(&self) -> bool

source

pub unsafe fn to_logical(&mut self, inner_dtype: DataType)

Set the logical type of the ListChunked.

§Safety

The caller must ensure that the logical type given fits the physical type of the array.

source

pub fn get_inner(&self) -> Series

Get the inner values as Series, ignoring the list offsets.

source

pub fn iter_offsets(&self) -> impl Iterator<Item = i64>

Returns an iterator over the offsets of this chunked array.

The offsets are returned as though the array consisted of a single chunk.

source

pub fn apply_to_inner( &self, func: &dyn Fn(Series) -> Result<Series, PolarsError> ) -> Result<ChunkedArray<ListType>, PolarsError>

Ignore the list indices and apply func to the inner type as Series.

source§

impl ChunkedArray<Int32Type>

source§

impl ChunkedArray<Int64Type>

source§

impl ChunkedArray<Int128Type>

source§

impl ChunkedArray<Int64Type>

source§

impl ChunkedArray<Int64Type>

source§

impl<T> ChunkedArray<ObjectType<T>>
where T: PolarsObject,

source

pub fn new_from_vec(name: &str, v: Vec<T>) -> ChunkedArray<ObjectType<T>>

source

pub fn new_from_vec_and_validity( name: &str, v: Vec<T>, validity: Bitmap ) -> ChunkedArray<ObjectType<T>>

source

pub fn new_empty(name: &str) -> ChunkedArray<ObjectType<T>>

source§

impl<T> ChunkedArray<ObjectType<T>>
where T: PolarsObject,

source

pub unsafe fn get_object_unchecked( &self, index: usize ) -> Option<&(dyn PolarsObjectSafe + 'static)>

Get a hold to an object that can be formatted or downcasted via the Any trait.

§Safety

No bounds checks

source

pub fn get_object( &self, index: usize ) -> Option<&(dyn PolarsObjectSafe + 'static)>

Get a hold to an object that can be formatted or downcasted via the Any trait.

source§

impl<T> ChunkedArray<T>

source

pub fn init_rand( size: usize, null_density: f32, seed: Option<u64> ) -> ChunkedArray<T>

source§

impl<T> ChunkedArray<T>

source

pub fn sample_n( &self, n: usize, with_replacement: bool, shuffle: bool, seed: Option<u64> ) -> Result<ChunkedArray<T>, PolarsError>

Sample n datapoints from this ChunkedArray.

source

pub fn sample_frac( &self, frac: f64, with_replacement: bool, shuffle: bool, seed: Option<u64> ) -> Result<ChunkedArray<T>, PolarsError>

Sample a fraction between 0.0-1.0 of this ChunkedArray.

source§

impl<T> ChunkedArray<T>

source

pub fn rand_normal( name: &str, length: usize, mean: f64, std_dev: f64 ) -> Result<ChunkedArray<T>, PolarsError>

Create ChunkedArray with samples from a Normal distribution.

source

pub fn rand_standard_normal(name: &str, length: usize) -> ChunkedArray<T>

Create ChunkedArray with samples from a Standard Normal distribution.

source

pub fn rand_uniform( name: &str, length: usize, low: f64, high: f64 ) -> ChunkedArray<T>

Create ChunkedArray with samples from a Uniform distribution.

source§

impl ChunkedArray<BooleanType>

source

pub fn rand_bernoulli( name: &str, length: usize, p: f64 ) -> Result<ChunkedArray<BooleanType>, PolarsError>

Create ChunkedArray with samples from a Bernoulli distribution.

source§

impl<T> ChunkedArray<T>

source

pub fn to_vec(&self) -> Vec<Option<<T as PolarsNumericType>::Native>>

Convert to a Vec of Option<T::Native>.

source

pub fn to_vec_null_aware( &self ) -> Either<Vec<<T as PolarsNumericType>::Native>, Vec<Option<<T as PolarsNumericType>::Native>>>

Convert to a Vec but don’t return Option<T::Native> if there are no null values

source§

impl<T> ChunkedArray<T>
where T: PolarsDataType,

source

pub fn new_with_compute_len( field: Arc<Field>, chunks: Vec<Box<dyn Array>> ) -> ChunkedArray<T>

Create a new ChunkedArray and compute its length and null_count.

If you want to explicitly the length and null_count, look at ChunkedArray::new_with_dims

source

pub unsafe fn new_with_dims( field: Arc<Field>, chunks: Vec<Box<dyn Array>>, length: u32, null_count: u32 ) -> ChunkedArray<T>

Create a new ChunkedArray and explicitly set its length and null_count.

If you want to compute the length and null_count, look at ChunkedArray::new_with_compute_len

§Safety

The length and null_count must be correct.

source

pub fn effective_metadata(&self) -> &Metadata<T>

Get a reference to the used Metadata

This results a reference to an empty Metadata if its unset for this ChunkedArray.

source

pub fn metadata(&self) -> Option<&Metadata<T>>

Get a reference to the ChunkedArray’s Metadata

source

pub fn metadata_arc(&self) -> Option<&Arc<Metadata<T>>>

Get a reference to Arc that contains the ChunkedArray’s Metadata

source

pub fn metadata_owned_arc(&self) -> Arc<Metadata<T>>

Get a Arc that contains the ChunkedArray’s Metadata

source

pub fn metadata_mut(&mut self) -> &mut Arc<Metadata<T>>

Get a mutable reference to the Arc that contains the ChunkedArray’s Metadata

source

pub fn unset_fast_explode_list(&mut self)

source

pub fn set_fast_explode_list(&mut self, value: bool)

source

pub fn get_fast_explode_list(&self) -> bool

source

pub fn get_flags(&self) -> MetadataFlags

source

pub fn is_sorted_flag(&self) -> IsSorted

source

pub fn set_sorted_flag(&mut self, sorted: IsSorted)

Set the ‘sorted’ bit meta info.

source

pub fn with_sorted_flag(&self, sorted: IsSorted) -> ChunkedArray<T>

Set the ‘sorted’ bit meta info.

source

pub fn get_min_value(&self) -> Option<&<T as PolarsDataType>::OwnedPhysical>

source

pub fn get_max_value(&self) -> Option<&<T as PolarsDataType>::OwnedPhysical>

source

pub fn get_distinct_count(&self) -> Option<u32>

source

pub fn merge_metadata(&mut self, md: Metadata<T>)

source

pub fn copy_metadata_cast<O>( &mut self, other: &ChunkedArray<O>, props: MetadataProperties )
where O: PolarsDataType,

Copies Metadata properties specified by props from other with different underlying PolarsDataType into self.

This does not copy the properties with a different type between the Metadatas (e.g. min_value and max_value) and will panic on debug builds if that is attempted.

source

pub fn copy_metadata( &mut self, other: &ChunkedArray<T>, props: MetadataProperties )

Copies Metadata properties specified by props from other into self.

source

pub fn first_non_null(&self) -> Option<usize>

Get the index of the first non null value in this ChunkedArray.

source

pub fn last_non_null(&self) -> Option<usize>

Get the index of the last non null value in this ChunkedArray.

source

pub fn drop_nulls(&self) -> ChunkedArray<T>

source

pub fn iter_validities( &self ) -> Map<Iter<'_, Box<dyn Array>>, fn(_: &Box<dyn Array>) -> Option<&Bitmap>>

Get the buffer of bits representing null values

source

pub fn has_validity(&self) -> bool

Return if any the chunks in this ChunkedArray have a validity bitmap. no bitmap means no null values.

source

pub fn shrink_to_fit(&mut self)

Shrink the capacity of this array to fit its length.

source

pub fn clear(&self) -> ChunkedArray<T>

source

pub fn unpack_series_matching_type( &self, series: &Series ) -> Result<&ChunkedArray<T>, PolarsError>

Series to ChunkedArray<T>

source

pub fn chunk_lengths( &self ) -> Map<Iter<'_, Box<dyn Array>>, fn(_: &Box<dyn Array>) -> usize>

Returns an iterator over the lengths of the chunks of the array.

source

pub fn chunks(&self) -> &Vec<Box<dyn Array>>

A reference to the chunks

source

pub unsafe fn chunks_mut(&mut self) -> &mut Vec<Box<dyn Array>>

A mutable reference to the chunks

§Safety

The caller must ensure to not change the DataType or length of any of the chunks. And the null_count remains correct.

source

pub fn is_optimal_aligned(&self) -> bool

Returns true if contains a single chunk and has no null values

source

pub fn dtype(&self) -> &DataType

Get data type of ChunkedArray.

source

pub fn name(&self) -> &str

Name of the ChunkedArray.

source

pub fn ref_field(&self) -> &Field

Get a reference to the field.

source

pub fn rename(&mut self, name: &str)

Rename this ChunkedArray.

source

pub fn with_name(self, name: &str) -> ChunkedArray<T>

Return this ChunkedArray with a new name.

source§

impl<T> ChunkedArray<T>
where T: PolarsDataType,

source

pub fn get(&self, idx: usize) -> Option<<T as PolarsDataType>::Physical<'_>>

Get a single value from this ChunkedArray. If the return values is None this indicates a NULL value.

§Panics

This function will panic if idx is out of bounds.

source

pub unsafe fn get_unchecked( &self, idx: usize ) -> Option<<T as PolarsDataType>::Physical<'_>>

Get a single value from this ChunkedArray. If the return values is None this indicates a NULL value.

§Safety

It is the callers responsibility that the idx < self.len().

source

pub unsafe fn value_unchecked( &self, idx: usize ) -> <T as PolarsDataType>::Physical<'_>

Get a single value from this ChunkedArray. Null values are ignored and the returned value could be garbage if it was masked out by NULL. Note that the value always is initialized.

§Safety

It is the callers responsibility that the idx < self.len().

source

pub fn last(&self) -> Option<<T as PolarsDataType>::Physical<'_>>

source§

impl ChunkedArray<ListType>

source

pub fn get_as_series(&self, idx: usize) -> Option<Series>

source§

impl ChunkedArray<FixedSizeListType>

source

pub fn get_as_series(&self, idx: usize) -> Option<Series>

Available on crate feature dtype-array only.
source§

impl<T> ChunkedArray<T>
where T: PolarsDataType,

source

pub fn layout(&self) -> ChunkedArrayLayout<'_, T>

source§

impl<T> ChunkedArray<T>

source

pub fn cont_slice( &self ) -> Result<&[<T as PolarsNumericType>::Native], PolarsError>

Returns the values of the array as a contiguous slice.

source

pub fn data_views(&self) -> impl DoubleEndedIterator

Get slices of the underlying arrow data. NOTE: null values should be taken into account by the user of these slices as they are handled separately

source

pub fn into_no_null_iter( &self ) -> impl Send + Sync + ExactSizeIterator + DoubleEndedIterator + TrustedLen

source§

impl<T> ChunkedArray<T>

source

pub fn group_tuples_perfect( &self, max: usize, multithreaded: bool, group_capacity: usize ) -> GroupsProxy

source§

impl<T> ChunkedArray<T>

source

pub fn new_vec( name: &str, v: Vec<<T as PolarsNumericType>::Native> ) -> ChunkedArray<T>

Specialization that prevents an allocation prefer this over ChunkedArray::new when you have a Vec<T::Native> and no null values.

source§

impl<T> ChunkedArray<T>

We cannot override the left hand side behaviour. So we create a trait LhsNumOps. This allows for 1.add(&Series)

source

pub fn lhs_sub<N>(&self, lhs: N) -> ChunkedArray<T>
where N: Num + NumCast,

Apply lhs - self

source

pub fn lhs_div<N>(&self, lhs: N) -> ChunkedArray<T>
where N: Num + NumCast,

Apply lhs / self

source

pub fn lhs_rem<N>(&self, lhs: N) -> ChunkedArray<T>
where N: Num + NumCast,

Apply lhs % self

Trait Implementations§

source§

impl Add<&[u8]> for &ChunkedArray<BinaryType>

§

type Output = ChunkedArray<BinaryType>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &[u8]) -> <&ChunkedArray<BinaryType> as Add<&[u8]>>::Output

Performs the + operation. Read more
source§

impl Add<&str> for &ChunkedArray<StringType>

§

type Output = ChunkedArray<StringType>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &str) -> <&ChunkedArray<StringType> as Add<&str>>::Output

Performs the + operation. Read more
source§

impl<T, N> Add<N> for &ChunkedArray<T>

§

type Output = ChunkedArray<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: N) -> <&ChunkedArray<T> as Add<N>>::Output

Performs the + operation. Read more
source§

impl<T, N> Add<N> for ChunkedArray<T>

§

type Output = ChunkedArray<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: N) -> <ChunkedArray<T> as Add<N>>::Output

Performs the + operation. Read more
source§

impl Add for &ChunkedArray<BinaryType>

§

type Output = ChunkedArray<BinaryType>

The resulting type after applying the + operator.
source§

fn add( self, rhs: &ChunkedArray<BinaryType> ) -> <&ChunkedArray<BinaryType> as Add>::Output

Performs the + operation. Read more
source§

impl Add for &ChunkedArray<BooleanType>

§

type Output = ChunkedArray<UInt32Type>

The resulting type after applying the + operator.
source§

fn add( self, rhs: &ChunkedArray<BooleanType> ) -> <&ChunkedArray<BooleanType> as Add>::Output

Performs the + operation. Read more
source§

impl Add for &ChunkedArray<StringType>

§

type Output = ChunkedArray<StringType>

The resulting type after applying the + operator.
source§

fn add( self, rhs: &ChunkedArray<StringType> ) -> <&ChunkedArray<StringType> as Add>::Output

Performs the + operation. Read more
source§

impl<T> Add for &ChunkedArray<T>

§

type Output = ChunkedArray<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &ChunkedArray<T>) -> <&ChunkedArray<T> as Add>::Output

Performs the + operation. Read more
source§

impl Add for ChunkedArray<BinaryType>

§

type Output = ChunkedArray<BinaryType>

The resulting type after applying the + operator.
source§

fn add( self, rhs: ChunkedArray<BinaryType> ) -> <ChunkedArray<BinaryType> as Add>::Output

Performs the + operation. Read more
source§

impl Add for ChunkedArray<BooleanType>

§

type Output = ChunkedArray<UInt32Type>

The resulting type after applying the + operator.
source§

fn add( self, rhs: ChunkedArray<BooleanType> ) -> <ChunkedArray<BooleanType> as Add>::Output

Performs the + operation. Read more
source§

impl Add for ChunkedArray<StringType>

§

type Output = ChunkedArray<StringType>

The resulting type after applying the + operator.
source§

fn add( self, rhs: ChunkedArray<StringType> ) -> <ChunkedArray<StringType> as Add>::Output

Performs the + operation. Read more
source§

impl<T> Add for ChunkedArray<T>

§

type Output = ChunkedArray<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: ChunkedArray<T>) -> <ChunkedArray<T> as Add>::Output

Performs the + operation. Read more
source§

impl AggList for ChunkedArray<BinaryType>

source§

unsafe fn agg_list(&self, groups: &GroupsProxy) -> Series

Safety Read more
source§

impl AggList for ChunkedArray<BooleanType>

source§

unsafe fn agg_list(&self, groups: &GroupsProxy) -> Series

Safety Read more
source§

impl AggList for ChunkedArray<FixedSizeListType>

Available on crate feature dtype-array only.
source§

unsafe fn agg_list(&self, groups: &GroupsProxy) -> Series

Safety Read more
source§

impl AggList for ChunkedArray<ListType>

source§

unsafe fn agg_list(&self, groups: &GroupsProxy) -> Series

Safety Read more
source§

impl<T> AggList for ChunkedArray<ObjectType<T>>
where T: PolarsObject,

Available on crate feature object only.
source§

unsafe fn agg_list(&self, groups: &GroupsProxy) -> Series

Safety Read more
source§

impl AggList for ChunkedArray<StringType>

source§

unsafe fn agg_list(&self, groups: &GroupsProxy) -> Series

Safety Read more
source§

impl<T> AggList for ChunkedArray<T>

source§

unsafe fn agg_list(&self, groups: &GroupsProxy) -> Series

Safety Read more
source§

impl<T> ArithmeticChunked for &ChunkedArray<T>

§

type Scalar = <T as PolarsNumericType>::Native

§

type Out = ChunkedArray<T>

§

type TrueDivOut = ChunkedArray<<<T as PolarsNumericType>::Native as NumericNative>::TrueDivPolarsType>

source§

fn wrapping_abs(self) -> <&ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_neg(self) -> <&ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_add( self, rhs: &ChunkedArray<T> ) -> <&ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_sub( self, rhs: &ChunkedArray<T> ) -> <&ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_mul( self, rhs: &ChunkedArray<T> ) -> <&ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_floor_div( self, rhs: &ChunkedArray<T> ) -> <&ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_trunc_div( self, rhs: &ChunkedArray<T> ) -> <&ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_mod( self, rhs: &ChunkedArray<T> ) -> <&ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_add_scalar( self, rhs: <&ChunkedArray<T> as ArithmeticChunked>::Scalar ) -> <&ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_sub_scalar( self, rhs: <&ChunkedArray<T> as ArithmeticChunked>::Scalar ) -> <&ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_sub_scalar_lhs( lhs: <&ChunkedArray<T> as ArithmeticChunked>::Scalar, rhs: &ChunkedArray<T> ) -> <&ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_mul_scalar( self, rhs: <&ChunkedArray<T> as ArithmeticChunked>::Scalar ) -> <&ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_floor_div_scalar( self, rhs: <&ChunkedArray<T> as ArithmeticChunked>::Scalar ) -> <&ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_floor_div_scalar_lhs( lhs: <&ChunkedArray<T> as ArithmeticChunked>::Scalar, rhs: &ChunkedArray<T> ) -> <&ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_trunc_div_scalar( self, rhs: <&ChunkedArray<T> as ArithmeticChunked>::Scalar ) -> <&ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_trunc_div_scalar_lhs( lhs: <&ChunkedArray<T> as ArithmeticChunked>::Scalar, rhs: &ChunkedArray<T> ) -> <&ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_mod_scalar( self, rhs: <&ChunkedArray<T> as ArithmeticChunked>::Scalar ) -> <&ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_mod_scalar_lhs( lhs: <&ChunkedArray<T> as ArithmeticChunked>::Scalar, rhs: &ChunkedArray<T> ) -> <&ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn true_div( self, rhs: &ChunkedArray<T> ) -> <&ChunkedArray<T> as ArithmeticChunked>::TrueDivOut

source§

fn true_div_scalar( self, rhs: <&ChunkedArray<T> as ArithmeticChunked>::Scalar ) -> <&ChunkedArray<T> as ArithmeticChunked>::TrueDivOut

source§

fn true_div_scalar_lhs( lhs: <&ChunkedArray<T> as ArithmeticChunked>::Scalar, rhs: &ChunkedArray<T> ) -> <&ChunkedArray<T> as ArithmeticChunked>::TrueDivOut

source§

fn legacy_div( self, rhs: &ChunkedArray<T> ) -> <&ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn legacy_div_scalar( self, rhs: <&ChunkedArray<T> as ArithmeticChunked>::Scalar ) -> <&ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn legacy_div_scalar_lhs( lhs: <&ChunkedArray<T> as ArithmeticChunked>::Scalar, rhs: &ChunkedArray<T> ) -> <&ChunkedArray<T> as ArithmeticChunked>::Out

source§

impl<T> ArithmeticChunked for ChunkedArray<T>

§

type Scalar = <T as PolarsNumericType>::Native

§

type Out = ChunkedArray<T>

§

type TrueDivOut = ChunkedArray<<<T as PolarsNumericType>::Native as NumericNative>::TrueDivPolarsType>

source§

fn wrapping_abs(self) -> <ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_neg(self) -> <ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_add( self, rhs: ChunkedArray<T> ) -> <ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_sub( self, rhs: ChunkedArray<T> ) -> <ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_mul( self, rhs: ChunkedArray<T> ) -> <ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_floor_div( self, rhs: ChunkedArray<T> ) -> <ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_trunc_div( self, rhs: ChunkedArray<T> ) -> <ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_mod( self, rhs: ChunkedArray<T> ) -> <ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_add_scalar( self, rhs: <ChunkedArray<T> as ArithmeticChunked>::Scalar ) -> <ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_sub_scalar( self, rhs: <ChunkedArray<T> as ArithmeticChunked>::Scalar ) -> <ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_sub_scalar_lhs( lhs: <ChunkedArray<T> as ArithmeticChunked>::Scalar, rhs: ChunkedArray<T> ) -> <ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_mul_scalar( self, rhs: <ChunkedArray<T> as ArithmeticChunked>::Scalar ) -> <ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_floor_div_scalar( self, rhs: <ChunkedArray<T> as ArithmeticChunked>::Scalar ) -> <ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_floor_div_scalar_lhs( lhs: <ChunkedArray<T> as ArithmeticChunked>::Scalar, rhs: ChunkedArray<T> ) -> <ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_trunc_div_scalar( self, rhs: <ChunkedArray<T> as ArithmeticChunked>::Scalar ) -> <ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_trunc_div_scalar_lhs( lhs: <ChunkedArray<T> as ArithmeticChunked>::Scalar, rhs: ChunkedArray<T> ) -> <ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_mod_scalar( self, rhs: <ChunkedArray<T> as ArithmeticChunked>::Scalar ) -> <ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn wrapping_mod_scalar_lhs( lhs: <ChunkedArray<T> as ArithmeticChunked>::Scalar, rhs: ChunkedArray<T> ) -> <ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn true_div( self, rhs: ChunkedArray<T> ) -> <ChunkedArray<T> as ArithmeticChunked>::TrueDivOut

source§

fn true_div_scalar( self, rhs: <ChunkedArray<T> as ArithmeticChunked>::Scalar ) -> <ChunkedArray<T> as ArithmeticChunked>::TrueDivOut

source§

fn true_div_scalar_lhs( lhs: <ChunkedArray<T> as ArithmeticChunked>::Scalar, rhs: ChunkedArray<T> ) -> <ChunkedArray<T> as ArithmeticChunked>::TrueDivOut

source§

fn legacy_div( self, rhs: ChunkedArray<T> ) -> <ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn legacy_div_scalar( self, rhs: <ChunkedArray<T> as ArithmeticChunked>::Scalar ) -> <ChunkedArray<T> as ArithmeticChunked>::Out

source§

fn legacy_div_scalar_lhs( lhs: <ChunkedArray<T> as ArithmeticChunked>::Scalar, rhs: ChunkedArray<T> ) -> <ChunkedArray<T> as ArithmeticChunked>::Out

source§

impl ArrayNameSpace for ChunkedArray<FixedSizeListType>

source§

impl AsArray for ChunkedArray<FixedSizeListType>

source§

impl AsBinary for ChunkedArray<BinaryType>

source§

impl AsList for ChunkedArray<ListType>

source§

impl<'a, T> AsMut<ChunkedArray<T>> for dyn SeriesTrait + 'a
where T: 'static + PolarsDataType,

source§

fn as_mut(&mut self) -> &mut ChunkedArray<T>

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl<T> AsRef<ChunkedArray<T>> for ChunkedArray<T>
where T: PolarsDataType,

source§

fn as_ref(&self) -> &ChunkedArray<T>

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<'a, T> AsRef<ChunkedArray<T>> for dyn SeriesTrait + 'a
where T: 'static + PolarsDataType,

source§

fn as_ref(&self) -> &ChunkedArray<T>

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<T> AsRefDataType for ChunkedArray<T>
where T: PolarsDataType,

source§

impl AsString for ChunkedArray<StringType>

source§

impl AsString for ChunkedArray<StringType>

source§

impl BinaryNameSpaceImpl for ChunkedArray<BinaryType>

source§

fn contains(&self, lit: &[u8]) -> ChunkedArray<BooleanType>

Check if binary contains given literal
source§

fn contains_chunked( &self, lit: &ChunkedArray<BinaryType> ) -> ChunkedArray<BooleanType>

source§

fn ends_with(&self, sub: &[u8]) -> ChunkedArray<BooleanType>

Check if strings ends with a substring
source§

fn starts_with(&self, sub: &[u8]) -> ChunkedArray<BooleanType>

Check if strings starts with a substring
source§

fn starts_with_chunked( &self, prefix: &ChunkedArray<BinaryType> ) -> ChunkedArray<BooleanType>

source§

fn ends_with_chunked( &self, suffix: &ChunkedArray<BinaryType> ) -> ChunkedArray<BooleanType>

source§

impl BitAnd for &ChunkedArray<BooleanType>

§

type Output = ChunkedArray<BooleanType>

The resulting type after applying the & operator.
source§

fn bitand( self, rhs: &ChunkedArray<BooleanType> ) -> <&ChunkedArray<BooleanType> as BitAnd>::Output

Performs the & operation. Read more
source§

impl<T> BitAnd for &ChunkedArray<T>

§

type Output = ChunkedArray<T>

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: &ChunkedArray<T>) -> <&ChunkedArray<T> as BitAnd>::Output

Performs the & operation. Read more
source§

impl BitAnd for ChunkedArray<BooleanType>

§

type Output = ChunkedArray<BooleanType>

The resulting type after applying the & operator.
source§

fn bitand( self, rhs: ChunkedArray<BooleanType> ) -> <ChunkedArray<BooleanType> as BitAnd>::Output

Performs the & operation. Read more
source§

impl BitOr for &ChunkedArray<BooleanType>

§

type Output = ChunkedArray<BooleanType>

The resulting type after applying the | operator.
source§

fn bitor( self, rhs: &ChunkedArray<BooleanType> ) -> <&ChunkedArray<BooleanType> as BitOr>::Output

Performs the | operation. Read more
source§

impl<T> BitOr for &ChunkedArray<T>

§

type Output = ChunkedArray<T>

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: &ChunkedArray<T>) -> <&ChunkedArray<T> as BitOr>::Output

Performs the | operation. Read more
source§

impl BitOr for ChunkedArray<BooleanType>

§

type Output = ChunkedArray<BooleanType>

The resulting type after applying the | operator.
source§

fn bitor( self, rhs: ChunkedArray<BooleanType> ) -> <ChunkedArray<BooleanType> as BitOr>::Output

Performs the | operation. Read more
source§

impl BitXor for &ChunkedArray<BooleanType>

§

type Output = ChunkedArray<BooleanType>

The resulting type after applying the ^ operator.
source§

fn bitxor( self, rhs: &ChunkedArray<BooleanType> ) -> <&ChunkedArray<BooleanType> as BitXor>::Output

Performs the ^ operation. Read more
source§

impl<T> BitXor for &ChunkedArray<T>

§

type Output = ChunkedArray<T>

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: &ChunkedArray<T>) -> <&ChunkedArray<T> as BitXor>::Output

Performs the ^ operation. Read more
source§

impl BitXor for ChunkedArray<BooleanType>

§

type Output = ChunkedArray<BooleanType>

The resulting type after applying the ^ operator.
source§

fn bitxor( self, rhs: ChunkedArray<BooleanType> ) -> <ChunkedArray<BooleanType> as BitXor>::Output

Performs the ^ operation. Read more
source§

impl<T> ChunkAgg<<T as PolarsNumericType>::Native> for ChunkedArray<T>
where PrimitiveArray<<T as PolarsNumericType>::Native>: for<'a> MinMaxKernel<Scalar<'a> = <T as PolarsNumericType>::Native>, <<T as PolarsNumericType>::Native as Simd>::Simd: Add<Output = <<T as PolarsNumericType>::Native as Simd>::Simd> + Sum<<T as PolarsNumericType>::Native>, T: PolarsNumericType,

source§

fn sum(&self) -> Option<<T as PolarsNumericType>::Native>

Aggregate the sum of the ChunkedArray. Returns None if not implemented for T. If the array is empty, 0 is returned
source§

fn min(&self) -> Option<<T as PolarsNumericType>::Native>

source§

fn max(&self) -> Option<<T as PolarsNumericType>::Native>

Returns the maximum value in the array, according to the natural order. Returns None if the array is empty or only contains null values.
source§

fn min_max( &self ) -> Option<(<T as PolarsNumericType>::Native, <T as PolarsNumericType>::Native)>

source§

fn mean(&self) -> Option<f64>

Returns the mean value in the array. Returns None if the array is empty or only contains null values.
source§

impl ChunkAggSeries for ChunkedArray<BinaryType>

source§

fn sum_reduce(&self) -> Scalar

Get the sum of the ChunkedArray as a new Series of length 1.
source§

fn max_reduce(&self) -> Scalar

Get the max of the ChunkedArray as a new Series of length 1.
source§

fn min_reduce(&self) -> Scalar

Get the min of the ChunkedArray as a new Series of length 1.
source§

fn prod_reduce(&self) -> Scalar

Get the product of the ChunkedArray as a new Series of length 1.
source§

impl ChunkAggSeries for ChunkedArray<BooleanType>

source§

fn sum_reduce(&self) -> Scalar

Get the sum of the ChunkedArray as a new Series of length 1.
source§

fn max_reduce(&self) -> Scalar

Get the max of the ChunkedArray as a new Series of length 1.
source§

fn min_reduce(&self) -> Scalar

Get the min of the ChunkedArray as a new Series of length 1.
source§

fn prod_reduce(&self) -> Scalar

Get the product of the ChunkedArray as a new Series of length 1.
source§

impl<T> ChunkAggSeries for ChunkedArray<ObjectType<T>>
where T: PolarsObject,

Available on crate feature object only.
source§

fn sum_reduce(&self) -> Scalar

Get the sum of the ChunkedArray as a new Series of length 1.
source§

fn max_reduce(&self) -> Scalar

Get the max of the ChunkedArray as a new Series of length 1.
source§

fn min_reduce(&self) -> Scalar

Get the min of the ChunkedArray as a new Series of length 1.
source§

fn prod_reduce(&self) -> Scalar

Get the product of the ChunkedArray as a new Series of length 1.
source§

impl ChunkAggSeries for ChunkedArray<StringType>

source§

fn max_reduce(&self) -> Scalar

Get the max of the ChunkedArray as a new Series of length 1.
source§

fn min_reduce(&self) -> Scalar

Get the min of the ChunkedArray as a new Series of length 1.
source§

fn sum_reduce(&self) -> Scalar

Get the sum of the ChunkedArray as a new Series of length 1.
source§

fn prod_reduce(&self) -> Scalar

Get the product of the ChunkedArray as a new Series of length 1.
source§

impl<T> ChunkAggSeries for ChunkedArray<T>
where PrimitiveArray<<T as PolarsNumericType>::Native>: for<'a> MinMaxKernel<Scalar<'a> = <T as PolarsNumericType>::Native>, <<T as PolarsNumericType>::Native as Simd>::Simd: Add<Output = <<T as PolarsNumericType>::Native as Simd>::Simd> + Sum<<T as PolarsNumericType>::Native>, T: PolarsNumericType, ChunkedArray<T>: IntoSeries,

source§

fn sum_reduce(&self) -> Scalar

Get the sum of the ChunkedArray as a new Series of length 1.
source§

fn max_reduce(&self) -> Scalar

Get the max of the ChunkedArray as a new Series of length 1.
source§

fn min_reduce(&self) -> Scalar

Get the min of the ChunkedArray as a new Series of length 1.
source§

fn prod_reduce(&self) -> Scalar

Get the product of the ChunkedArray as a new Series of length 1.
source§

impl ChunkAnyValue for ChunkedArray<BinaryOffsetType>

source§

unsafe fn get_any_value_unchecked(&self, index: usize) -> AnyValue<'_>

Get a single value. Beware this is slow. If you need to use this slightly performant, cast Categorical to UInt32 Read more
source§

fn get_any_value(&self, index: usize) -> Result<AnyValue<'_>, PolarsError>

Get a single value. Beware this is slow.
source§

impl ChunkAnyValue for ChunkedArray<BinaryType>

source§

unsafe fn get_any_value_unchecked(&self, index: usize) -> AnyValue<'_>

Get a single value. Beware this is slow. If you need to use this slightly performant, cast Categorical to UInt32 Read more
source§

fn get_any_value(&self, index: usize) -> Result<AnyValue<'_>, PolarsError>

Get a single value. Beware this is slow.
source§

impl ChunkAnyValue for ChunkedArray<BooleanType>

source§

unsafe fn get_any_value_unchecked(&self, index: usize) -> AnyValue<'_>

Get a single value. Beware this is slow. If you need to use this slightly performant, cast Categorical to UInt32 Read more
source§

fn get_any_value(&self, index: usize) -> Result<AnyValue<'_>, PolarsError>

Get a single value. Beware this is slow.
source§

impl ChunkAnyValue for ChunkedArray<FixedSizeListType>

Available on crate feature dtype-array only.
source§

unsafe fn get_any_value_unchecked(&self, index: usize) -> AnyValue<'_>

Get a single value. Beware this is slow. If you need to use this slightly performant, cast Categorical to UInt32 Read more
source§

fn get_any_value(&self, index: usize) -> Result<AnyValue<'_>, PolarsError>

Get a single value. Beware this is slow.
source§

impl ChunkAnyValue for ChunkedArray<ListType>

source§

unsafe fn get_any_value_unchecked(&self, index: usize) -> AnyValue<'_>

Get a single value. Beware this is slow. If you need to use this slightly performant, cast Categorical to UInt32 Read more
source§

fn get_any_value(&self, index: usize) -> Result<AnyValue<'_>, PolarsError>

Get a single value. Beware this is slow.
source§

impl<T> ChunkAnyValue for ChunkedArray<ObjectType<T>>
where T: PolarsObject,

Available on crate feature object only.
source§

unsafe fn get_any_value_unchecked(&self, index: usize) -> AnyValue<'_>

Get a single value. Beware this is slow. If you need to use this slightly performant, cast Categorical to UInt32 Read more
source§

fn get_any_value(&self, index: usize) -> Result<AnyValue<'_>, PolarsError>

Get a single value. Beware this is slow.
source§

impl ChunkAnyValue for ChunkedArray<StringType>

source§

unsafe fn get_any_value_unchecked(&self, index: usize) -> AnyValue<'_>

Get a single value. Beware this is slow. If you need to use this slightly performant, cast Categorical to UInt32 Read more
source§

fn get_any_value(&self, index: usize) -> Result<AnyValue<'_>, PolarsError>

Get a single value. Beware this is slow.
source§

impl<T> ChunkAnyValue for ChunkedArray<T>

source§

unsafe fn get_any_value_unchecked(&self, index: usize) -> AnyValue<'_>

Get a single value. Beware this is slow. If you need to use this slightly performant, cast Categorical to UInt32 Read more
source§

fn get_any_value(&self, index: usize) -> Result<AnyValue<'_>, PolarsError>

Get a single value. Beware this is slow.
source§

impl<'a> ChunkApply<'a, &'a [u8]> for ChunkedArray<BinaryType>

§

type FuncRet = Cow<'a, [u8]>

source§

fn apply_values<F>(&'a self, f: F) -> ChunkedArray<BinaryType>
where F: Fn(&'a [u8]) -> Cow<'a, [u8]> + Copy,

Apply a closure elementwise. This is fastest when the null check branching is more expensive than the closure application. Often it is. Read more
source§

fn apply<F>(&'a self, f: F) -> ChunkedArray<BinaryType>
where F: Fn(Option<&'a [u8]>) -> Option<Cow<'a, [u8]>> + Copy,

Apply a closure elementwise including null values.
source§

fn apply_to_slice<F, T>(&'a self, f: F, slice: &mut [T])
where F: Fn(Option<&'a [u8]>, &T) -> T,

Apply a closure elementwise and write results to a mutable slice.
source§

impl<'a, T> ChunkApply<'a, &'a T> for ChunkedArray<ObjectType<T>>
where T: PolarsObject,

Available on crate feature object only.
§

type FuncRet = T

source§

fn apply_values<F>(&'a self, f: F) -> ChunkedArray<ObjectType<T>>
where F: Fn(&'a T) -> T + Copy,

Apply a closure elementwise. This is fastest when the null check branching is more expensive than the closure application. Often it is. Read more
source§

fn apply<F>(&'a self, f: F) -> ChunkedArray<ObjectType<T>>
where F: Fn(Option<&'a T>) -> Option<T> + Copy,

Apply a closure elementwise including null values.
source§

fn apply_to_slice<F, V>(&'a self, f: F, slice: &mut [V])
where F: Fn(Option<&'a T>, &V) -> V,

Apply a closure elementwise and write results to a mutable slice.
source§

impl<'a> ChunkApply<'a, &'a str> for ChunkedArray<StringType>

§

type FuncRet = Cow<'a, str>

source§

fn apply_values<F>(&'a self, f: F) -> ChunkedArray<StringType>
where F: Fn(&'a str) -> Cow<'a, str> + Copy,

Apply a closure elementwise. This is fastest when the null check branching is more expensive than the closure application. Often it is. Read more
source§

fn apply<F>(&'a self, f: F) -> ChunkedArray<StringType>
where F: Fn(Option<&'a str>) -> Option<Cow<'a, str>> + Copy,

Apply a closure elementwise including null values.
source§

fn apply_to_slice<F, T>(&'a self, f: F, slice: &mut [T])
where F: Fn(Option<&'a str>, &T) -> T,

Apply a closure elementwise and write results to a mutable slice.
source§

impl<'a, T> ChunkApply<'a, <T as PolarsNumericType>::Native> for ChunkedArray<T>

§

type FuncRet = <T as PolarsNumericType>::Native

source§

fn apply_values<F>(&'a self, f: F) -> ChunkedArray<T>
where F: Fn(<T as PolarsNumericType>::Native) -> <T as PolarsNumericType>::Native + Copy,

Apply a closure elementwise. This is fastest when the null check branching is more expensive than the closure application. Often it is. Read more
source§

fn apply<F>(&'a self, f: F) -> ChunkedArray<T>

Apply a closure elementwise including null values.
source§

fn apply_to_slice<F, V>(&'a self, f: F, slice: &mut [V])
where F: Fn(Option<<T as PolarsNumericType>::Native>, &V) -> V,

Apply a closure elementwise and write results to a mutable slice.
source§

impl<'a> ChunkApply<'a, Series> for ChunkedArray<ListType>

source§

fn apply_values<F>(&'a self, f: F) -> ChunkedArray<ListType>
where F: Fn(Series) -> Series + Copy,

Apply a closure F elementwise.

§

type FuncRet = Series

source§

fn apply<F>(&'a self, f: F) -> ChunkedArray<ListType>
where F: Fn(Option<Series>) -> Option<Series> + Copy,

Apply a closure elementwise including null values.
source§

fn apply_to_slice<F, T>(&'a self, f: F, slice: &mut [T])
where F: Fn(Option<Series>, &T) -> T,

Apply a closure elementwise and write results to a mutable slice.
source§

impl<'a> ChunkApply<'a, bool> for ChunkedArray<BooleanType>

§

type FuncRet = bool

source§

fn apply_values<F>(&self, f: F) -> ChunkedArray<BooleanType>
where F: Fn(bool) -> bool + Copy,

Apply a closure elementwise. This is fastest when the null check branching is more expensive than the closure application. Often it is. Read more
source§

fn apply<F>(&'a self, f: F) -> ChunkedArray<BooleanType>
where F: Fn(Option<bool>) -> Option<bool> + Copy,

Apply a closure elementwise including null values.
source§

fn apply_to_slice<F, T>(&'a self, f: F, slice: &mut [T])
where F: Fn(Option<bool>, &T) -> T,

Apply a closure elementwise and write results to a mutable slice.
source§

impl ChunkApplyKernel<BinaryViewArrayGeneric<[u8]>> for ChunkedArray<BinaryType>

source§

fn apply_kernel( &self, f: &dyn Fn(&BinaryViewArrayGeneric<[u8]>) -> Box<dyn Array> ) -> ChunkedArray<BinaryType>

Apply kernel and return result as a new ChunkedArray.
source§

fn apply_kernel_cast<S>( &self, f: &dyn Fn(&BinaryViewArrayGeneric<[u8]>) -> Box<dyn Array> ) -> ChunkedArray<S>
where S: PolarsDataType,

Apply a kernel that outputs an array of different type.
source§

impl ChunkApplyKernel<BinaryViewArrayGeneric<str>> for ChunkedArray<StringType>

source§

fn apply_kernel( &self, f: &dyn Fn(&BinaryViewArrayGeneric<str>) -> Box<dyn Array> ) -> ChunkedArray<StringType>

Apply kernel and return result as a new ChunkedArray.
source§

fn apply_kernel_cast<S>( &self, f: &dyn Fn(&BinaryViewArrayGeneric<str>) -> Box<dyn Array> ) -> ChunkedArray<S>
where S: PolarsDataType,

Apply a kernel that outputs an array of different type.
source§

impl ChunkApplyKernel<BooleanArray> for ChunkedArray<BooleanType>

source§

fn apply_kernel( &self, f: &dyn Fn(&BooleanArray) -> Box<dyn Array> ) -> ChunkedArray<BooleanType>

Apply kernel and return result as a new ChunkedArray.
source§

fn apply_kernel_cast<S>( &self, f: &dyn Fn(&BooleanArray) -> Box<dyn Array> ) -> ChunkedArray<S>
where S: PolarsDataType,

Apply a kernel that outputs an array of different type.
source§

impl<T> ChunkApplyKernel<PrimitiveArray<<T as PolarsNumericType>::Native>> for ChunkedArray<T>

source§

fn apply_kernel( &self, f: &dyn Fn(&PrimitiveArray<<T as PolarsNumericType>::Native>) -> Box<dyn Array> ) -> ChunkedArray<T>

Apply kernel and return result as a new ChunkedArray.
source§

fn apply_kernel_cast<S>( &self, f: &dyn Fn(&PrimitiveArray<<T as PolarsNumericType>::Native>) -> Box<dyn Array> ) -> ChunkedArray<S>
where S: PolarsDataType,

Apply a kernel that outputs an array of different type.
source§

impl ChunkCast for ChunkedArray<BinaryOffsetType>

source§

fn cast_with_options( &self, data_type: &DataType, options: CastOptions ) -> Result<Series, PolarsError>

source§

unsafe fn cast_unchecked( &self, data_type: &DataType ) -> Result<Series, PolarsError>

Does not check if the cast is a valid one and may over/underflow Read more
source§

fn cast(&self, data_type: &DataType) -> Result<Series, PolarsError>

source§

impl ChunkCast for ChunkedArray<BinaryType>

source§

fn cast_with_options( &self, data_type: &DataType, options: CastOptions ) -> Result<Series, PolarsError>

source§

unsafe fn cast_unchecked( &self, data_type: &DataType ) -> Result<Series, PolarsError>

Does not check if the cast is a valid one and may over/underflow Read more
source§

fn cast(&self, data_type: &DataType) -> Result<Series, PolarsError>

source§

impl ChunkCast for ChunkedArray<BooleanType>

source§

fn cast_with_options( &self, data_type: &DataType, options: CastOptions ) -> Result<Series, PolarsError>

source§

unsafe fn cast_unchecked( &self, data_type: &DataType ) -> Result<Series, PolarsError>

Does not check if the cast is a valid one and may over/underflow Read more
source§

fn cast(&self, data_type: &DataType) -> Result<Series, PolarsError>

source§

impl ChunkCast for ChunkedArray<FixedSizeListType>

Available on crate feature dtype-array only.

We cannot cast anything to or from List/LargeList So this implementation casts the inner type

source§

fn cast_with_options( &self, data_type: &DataType, options: CastOptions ) -> Result<Series, PolarsError>

source§

unsafe fn cast_unchecked( &self, data_type: &DataType ) -> Result<Series, PolarsError>

Does not check if the cast is a valid one and may over/underflow Read more
source§

fn cast(&self, data_type: &DataType) -> Result<Series, PolarsError>

source§

impl ChunkCast for ChunkedArray<ListType>

We cannot cast anything to or from List/LargeList So this implementation casts the inner type

source§

fn cast_with_options( &self, data_type: &DataType, options: CastOptions ) -> Result<Series, PolarsError>

source§

unsafe fn cast_unchecked( &self, data_type: &DataType ) -> Result<Series, PolarsError>

Does not check if the cast is a valid one and may over/underflow Read more
source§

fn cast(&self, data_type: &DataType) -> Result<Series, PolarsError>

source§

impl ChunkCast for ChunkedArray<StringType>

source§

fn cast_with_options( &self, data_type: &DataType, options: CastOptions ) -> Result<Series, PolarsError>

source§

unsafe fn cast_unchecked( &self, data_type: &DataType ) -> Result<Series, PolarsError>

Does not check if the cast is a valid one and may over/underflow Read more
source§

fn cast(&self, data_type: &DataType) -> Result<Series, PolarsError>

source§

impl<T> ChunkCast for ChunkedArray<T>

source§

fn cast_with_options( &self, data_type: &DataType, options: CastOptions ) -> Result<Series, PolarsError>

source§

unsafe fn cast_unchecked( &self, data_type: &DataType ) -> Result<Series, PolarsError>

Does not check if the cast is a valid one and may over/underflow Read more
source§

fn cast(&self, data_type: &DataType) -> Result<Series, PolarsError>

source§

impl ChunkCompare<&[u8]> for ChunkedArray<BinaryType>

§

type Item = ChunkedArray<BooleanType>

source§

fn equal(&self, rhs: &[u8]) -> ChunkedArray<BooleanType>

Check for equality.
source§

fn equal_missing(&self, rhs: &[u8]) -> ChunkedArray<BooleanType>

Check for equality where None == None.
source§

fn not_equal(&self, rhs: &[u8]) -> ChunkedArray<BooleanType>

Check for inequality.
source§

fn not_equal_missing(&self, rhs: &[u8]) -> ChunkedArray<BooleanType>

Check for inequality where None == None.
source§

fn gt(&self, rhs: &[u8]) -> ChunkedArray<BooleanType>

Greater than comparison.
source§

fn gt_eq(&self, rhs: &[u8]) -> ChunkedArray<BooleanType>

Greater than or equal comparison.
source§

fn lt(&self, rhs: &[u8]) -> ChunkedArray<BooleanType>

Less than comparison.
source§

fn lt_eq(&self, rhs: &[u8]) -> ChunkedArray<BooleanType>

Less than or equal comparison
source§

impl ChunkCompare<&ChunkedArray<BinaryType>> for ChunkedArray<BinaryType>

§

type Item = ChunkedArray<BooleanType>

source§

fn equal(&self, rhs: &ChunkedArray<BinaryType>) -> ChunkedArray<BooleanType>

Check for equality.
source§

fn equal_missing( &self, rhs: &ChunkedArray<BinaryType> ) -> ChunkedArray<BooleanType>

Check for equality where None == None.
source§

fn not_equal(&self, rhs: &ChunkedArray<BinaryType>) -> ChunkedArray<BooleanType>

Check for inequality.
source§

fn not_equal_missing( &self, rhs: &ChunkedArray<BinaryType> ) -> ChunkedArray<BooleanType>

Check for inequality where None == None.
source§

fn lt(&self, rhs: &ChunkedArray<BinaryType>) -> ChunkedArray<BooleanType>

Less than comparison.
source§

fn lt_eq(&self, rhs: &ChunkedArray<BinaryType>) -> ChunkedArray<BooleanType>

Less than or equal comparison
source§

fn gt(&self, rhs: &ChunkedArray<BinaryType>) -> ChunkedArray<BooleanType>

Greater than comparison.
source§

fn gt_eq(&self, rhs: &ChunkedArray<BinaryType>) -> ChunkedArray<BooleanType>

Greater than or equal comparison.
source§

impl ChunkCompare<&ChunkedArray<BooleanType>> for ChunkedArray<BooleanType>

§

type Item = ChunkedArray<BooleanType>

source§

fn equal(&self, rhs: &ChunkedArray<BooleanType>) -> ChunkedArray<BooleanType>

Check for equality.
source§

fn equal_missing( &self, rhs: &ChunkedArray<BooleanType> ) -> ChunkedArray<BooleanType>

Check for equality where None == None.
source§

fn not_equal( &self, rhs: &ChunkedArray<BooleanType> ) -> ChunkedArray<BooleanType>

Check for inequality.
source§

fn not_equal_missing( &self, rhs: &ChunkedArray<BooleanType> ) -> ChunkedArray<BooleanType>

Check for inequality where None == None.
source§

fn lt(&self, rhs: &ChunkedArray<BooleanType>) -> ChunkedArray<BooleanType>

Less than comparison.
source§

fn lt_eq(&self, rhs: &ChunkedArray<BooleanType>) -> ChunkedArray<BooleanType>

Less than or equal comparison
source§

fn gt(&self, rhs: &ChunkedArray<BooleanType>) -> ChunkedArray<BooleanType>

Greater than comparison.
source§

fn gt_eq(&self, rhs: &ChunkedArray<BooleanType>) -> ChunkedArray<BooleanType>

Greater than or equal comparison.
source§

impl ChunkCompare<&ChunkedArray<FixedSizeListType>> for ChunkedArray<FixedSizeListType>

Available on crate feature dtype-array only.
§

type Item = ChunkedArray<BooleanType>

source§

fn equal( &self, rhs: &ChunkedArray<FixedSizeListType> ) -> ChunkedArray<BooleanType>

Check for equality.
source§

fn equal_missing( &self, rhs: &ChunkedArray<FixedSizeListType> ) -> ChunkedArray<BooleanType>

Check for equality where None == None.
source§

fn not_equal( &self, rhs: &ChunkedArray<FixedSizeListType> ) -> ChunkedArray<BooleanType>

Check for inequality.
source§

fn not_equal_missing( &self, rhs: &ChunkedArray<FixedSizeListType> ) -> <ChunkedArray<FixedSizeListType> as ChunkCompare<&ChunkedArray<FixedSizeListType>>>::Item

Check for inequality where None == None.
source§

fn gt( &self, _rhs: &ChunkedArray<FixedSizeListType> ) -> ChunkedArray<BooleanType>

Greater than comparison.
source§

fn gt_eq( &self, _rhs: &ChunkedArray<FixedSizeListType> ) -> ChunkedArray<BooleanType>

Greater than or equal comparison.
source§

fn lt( &self, _rhs: &ChunkedArray<FixedSizeListType> ) -> ChunkedArray<BooleanType>

Less than comparison.
source§

fn lt_eq( &self, _rhs: &ChunkedArray<FixedSizeListType> ) -> ChunkedArray<BooleanType>

Less than or equal comparison
source§

impl ChunkCompare<&ChunkedArray<ListType>> for ChunkedArray<ListType>

§

type Item = ChunkedArray<BooleanType>

source§

fn equal(&self, rhs: &ChunkedArray<ListType>) -> ChunkedArray<BooleanType>

Check for equality.
source§

fn equal_missing( &self, rhs: &ChunkedArray<ListType> ) -> ChunkedArray<BooleanType>

Check for equality where None == None.
source§

fn not_equal(&self, rhs: &ChunkedArray<ListType>) -> ChunkedArray<BooleanType>

Check for inequality.
source§

fn not_equal_missing( &self, rhs: &ChunkedArray<ListType> ) -> ChunkedArray<BooleanType>

Check for inequality where None == None.
source§

fn gt(&self, _rhs: &ChunkedArray<ListType>) -> ChunkedArray<BooleanType>

Greater than comparison.
source§

fn gt_eq(&self, _rhs: &ChunkedArray<ListType>) -> ChunkedArray<BooleanType>

Greater than or equal comparison.
source§

fn lt(&self, _rhs: &ChunkedArray<ListType>) -> ChunkedArray<BooleanType>

Less than comparison.
source§

fn lt_eq(&self, _rhs: &ChunkedArray<ListType>) -> ChunkedArray<BooleanType>

Less than or equal comparison
source§

impl ChunkCompare<&ChunkedArray<StringType>> for CategoricalChunked

§

type Item = Result<ChunkedArray<BooleanType>, PolarsError>

source§

fn equal( &self, rhs: &ChunkedArray<StringType> ) -> <CategoricalChunked as ChunkCompare<&ChunkedArray<StringType>>>::Item

Check for equality.
source§

fn equal_missing( &self, rhs: &ChunkedArray<StringType> ) -> <CategoricalChunked as ChunkCompare<&ChunkedArray<StringType>>>::Item

Check for equality where None == None.
source§

fn not_equal( &self, rhs: &ChunkedArray<StringType> ) -> <CategoricalChunked as ChunkCompare<&ChunkedArray<StringType>>>::Item

Check for inequality.
source§

fn not_equal_missing( &self, rhs: &ChunkedArray<StringType> ) -> <CategoricalChunked as ChunkCompare<&ChunkedArray<StringType>>>::Item

Check for inequality where None == None.
source§

fn gt( &self, rhs: &ChunkedArray<StringType> ) -> <CategoricalChunked as ChunkCompare<&ChunkedArray<StringType>>>::Item

Greater than comparison.
source§

fn gt_eq( &self, rhs: &ChunkedArray<StringType> ) -> <CategoricalChunked as ChunkCompare<&ChunkedArray<StringType>>>::Item

Greater than or equal comparison.
source§

fn lt( &self, rhs: &ChunkedArray<StringType> ) -> <CategoricalChunked as ChunkCompare<&ChunkedArray<StringType>>>::Item

Less than comparison.
source§

fn lt_eq( &self, rhs: &ChunkedArray<StringType> ) -> <CategoricalChunked as ChunkCompare<&ChunkedArray<StringType>>>::Item

Less than or equal comparison
source§

impl ChunkCompare<&ChunkedArray<StringType>> for ChunkedArray<StringType>

§

type Item = ChunkedArray<BooleanType>

source§

fn equal(&self, rhs: &ChunkedArray<StringType>) -> ChunkedArray<BooleanType>

Check for equality.
source§

fn equal_missing( &self, rhs: &ChunkedArray<StringType> ) -> ChunkedArray<BooleanType>

Check for equality where None == None.
source§

fn not_equal(&self, rhs: &ChunkedArray<StringType>) -> ChunkedArray<BooleanType>

Check for inequality.
source§

fn not_equal_missing( &self, rhs: &ChunkedArray<StringType> ) -> ChunkedArray<BooleanType>

Check for inequality where None == None.
source§

fn gt(&self, rhs: &ChunkedArray<StringType>) -> ChunkedArray<BooleanType>

Greater than comparison.
source§

fn gt_eq(&self, rhs: &ChunkedArray<StringType>) -> ChunkedArray<BooleanType>

Greater than or equal comparison.
source§

fn lt(&self, rhs: &ChunkedArray<StringType>) -> ChunkedArray<BooleanType>

Less than comparison.
source§

fn lt_eq(&self, rhs: &ChunkedArray<StringType>) -> ChunkedArray<BooleanType>

Less than or equal comparison
source§

impl<T> ChunkCompare<&ChunkedArray<T>> for ChunkedArray<T>
where T: PolarsNumericType, <T as PolarsDataType>::Array: TotalOrdKernel<Scalar = <T as PolarsNumericType>::Native>,

§

type Item = ChunkedArray<BooleanType>

source§

fn equal(&self, rhs: &ChunkedArray<T>) -> ChunkedArray<BooleanType>

Check for equality.
source§

fn equal_missing(&self, rhs: &ChunkedArray<T>) -> ChunkedArray<BooleanType>

Check for equality where None == None.
source§

fn not_equal(&self, rhs: &ChunkedArray<T>) -> ChunkedArray<BooleanType>

Check for inequality.
source§

fn not_equal_missing(&self, rhs: &ChunkedArray<T>) -> ChunkedArray<BooleanType>

Check for inequality where None == None.
source§

fn lt(&self, rhs: &ChunkedArray<T>) -> ChunkedArray<BooleanType>

Less than comparison.
source§

fn lt_eq(&self, rhs: &ChunkedArray<T>) -> ChunkedArray<BooleanType>

Less than or equal comparison
source§

fn gt(&self, rhs: &ChunkedArray<T>) -> ChunkedArray<BooleanType>

Greater than comparison.
source§

fn gt_eq(&self, rhs: &ChunkedArray<T>) -> ChunkedArray<BooleanType>

Greater than or equal comparison.
source§

impl ChunkCompare<&str> for ChunkedArray<StringType>

§

type Item = ChunkedArray<BooleanType>

source§

fn equal(&self, rhs: &str) -> ChunkedArray<BooleanType>

Check for equality.
source§

fn equal_missing(&self, rhs: &str) -> ChunkedArray<BooleanType>

Check for equality where None == None.
source§

fn not_equal(&self, rhs: &str) -> ChunkedArray<BooleanType>

Check for inequality.
source§

fn not_equal_missing(&self, rhs: &str) -> ChunkedArray<BooleanType>

Check for inequality where None == None.
source§

fn gt(&self, rhs: &str) -> ChunkedArray<BooleanType>

Greater than comparison.
source§

fn gt_eq(&self, rhs: &str) -> ChunkedArray<BooleanType>

Greater than or equal comparison.
source§

fn lt(&self, rhs: &str) -> ChunkedArray<BooleanType>

Less than comparison.
source§

fn lt_eq(&self, rhs: &str) -> ChunkedArray<BooleanType>

Less than or equal comparison
source§

impl<T, Rhs> ChunkCompare<Rhs> for ChunkedArray<T>
where T: PolarsNumericType, Rhs: ToPrimitive, <T as PolarsDataType>::Array: TotalOrdKernel<Scalar = <T as PolarsNumericType>::Native>,

§

type Item = ChunkedArray<BooleanType>

source§

fn equal(&self, rhs: Rhs) -> ChunkedArray<BooleanType>

Check for equality.
source§

fn equal_missing(&self, rhs: Rhs) -> ChunkedArray<BooleanType>

Check for equality where None == None.
source§

fn not_equal(&self, rhs: Rhs) -> ChunkedArray<BooleanType>

Check for inequality.
source§

fn not_equal_missing(&self, rhs: Rhs) -> ChunkedArray<BooleanType>

Check for inequality where None == None.
source§

fn gt(&self, rhs: Rhs) -> ChunkedArray<BooleanType>

Greater than comparison.
source§

fn gt_eq(&self, rhs: Rhs) -> ChunkedArray<BooleanType>

Greater than or equal comparison.
source§

fn lt(&self, rhs: Rhs) -> ChunkedArray<BooleanType>

Less than comparison.
source§

fn lt_eq(&self, rhs: Rhs) -> ChunkedArray<BooleanType>

Less than or equal comparison
source§

impl ChunkExpandAtIndex<BinaryOffsetType> for ChunkedArray<BinaryOffsetType>

source§

fn new_from_index( &self, index: usize, length: usize ) -> ChunkedArray<BinaryOffsetType>

Create a new ChunkedArray filled with values at that index.
source§

impl ChunkExpandAtIndex<BinaryType> for ChunkedArray<BinaryType>

source§

fn new_from_index( &self, index: usize, length: usize ) -> ChunkedArray<BinaryType>

Create a new ChunkedArray filled with values at that index.
source§

impl ChunkExpandAtIndex<BooleanType> for ChunkedArray<BooleanType>

source§

fn new_from_index( &self, index: usize, length: usize ) -> ChunkedArray<BooleanType>

Create a new ChunkedArray filled with values at that index.
source§

impl ChunkExpandAtIndex<FixedSizeListType> for ChunkedArray<FixedSizeListType>

Available on crate feature dtype-array only.
source§

fn new_from_index( &self, index: usize, length: usize ) -> ChunkedArray<FixedSizeListType>

Create a new ChunkedArray filled with values at that index.
source§

impl ChunkExpandAtIndex<ListType> for ChunkedArray<ListType>

source§

fn new_from_index(&self, index: usize, length: usize) -> ChunkedArray<ListType>

Create a new ChunkedArray filled with values at that index.
source§

impl<T> ChunkExpandAtIndex<ObjectType<T>> for ChunkedArray<ObjectType<T>>
where T: PolarsObject,

Available on crate feature object only.
source§

fn new_from_index( &self, index: usize, length: usize ) -> ChunkedArray<ObjectType<T>>

Create a new ChunkedArray filled with values at that index.
source§

impl ChunkExpandAtIndex<StringType> for ChunkedArray<StringType>

source§

fn new_from_index( &self, index: usize, length: usize ) -> ChunkedArray<StringType>

Create a new ChunkedArray filled with values at that index.
source§

impl<T> ChunkExpandAtIndex<T> for ChunkedArray<T>

source§

fn new_from_index(&self, index: usize, length: usize) -> ChunkedArray<T>

Create a new ChunkedArray filled with values at that index.
source§

impl ChunkExplode for ChunkedArray<FixedSizeListType>

Available on crate feature dtype-array only.
source§

fn offsets(&self) -> Result<OffsetsBuffer<i64>, PolarsError>

source§

fn explode_and_offsets( &self ) -> Result<(Series, OffsetsBuffer<i64>), PolarsError>

source§

fn explode(&self) -> Result<Series, PolarsError>

source§

impl ChunkExplode for ChunkedArray<ListType>

source§

fn offsets(&self) -> Result<OffsetsBuffer<i64>, PolarsError>

source§

fn explode_and_offsets( &self ) -> Result<(Series, OffsetsBuffer<i64>), PolarsError>

source§

fn explode(&self) -> Result<Series, PolarsError>

source§

impl ChunkFillNullValue<&[u8]> for ChunkedArray<BinaryType>

source§

fn fill_null_with_values( &self, value: &[u8] ) -> Result<ChunkedArray<BinaryType>, PolarsError>

Replace None values with a give value T.
source§

impl<T> ChunkFillNullValue<<T as PolarsNumericType>::Native> for ChunkedArray<T>

source§

fn fill_null_with_values( &self, value: <T as PolarsNumericType>::Native ) -> Result<ChunkedArray<T>, PolarsError>

Replace None values with a give value T.
source§

impl ChunkFillNullValue<bool> for ChunkedArray<BooleanType>

source§

fn fill_null_with_values( &self, value: bool ) -> Result<ChunkedArray<BooleanType>, PolarsError>

Replace None values with a give value T.
source§

impl ChunkFilter<BinaryOffsetType> for ChunkedArray<BinaryOffsetType>

source§

fn filter( &self, filter: &ChunkedArray<BooleanType> ) -> Result<ChunkedArray<BinaryOffsetType>, PolarsError>

Filter values in the ChunkedArray with a boolean mask. Read more
source§

impl ChunkFilter<BinaryType> for ChunkedArray<BinaryType>

source§

fn filter( &self, filter: &ChunkedArray<BooleanType> ) -> Result<ChunkedArray<BinaryType>, PolarsError>

Filter values in the ChunkedArray with a boolean mask. Read more
source§

impl ChunkFilter<BooleanType> for ChunkedArray<BooleanType>

source§

fn filter( &self, filter: &ChunkedArray<BooleanType> ) -> Result<ChunkedArray<BooleanType>, PolarsError>

Filter values in the ChunkedArray with a boolean mask. Read more
source§

impl ChunkFilter<FixedSizeListType> for ChunkedArray<FixedSizeListType>

Available on crate feature dtype-array only.
source§

fn filter( &self, filter: &ChunkedArray<BooleanType> ) -> Result<ChunkedArray<FixedSizeListType>, PolarsError>

Filter values in the ChunkedArray with a boolean mask. Read more
source§

impl ChunkFilter<ListType> for ChunkedArray<ListType>

source§

fn filter( &self, filter: &ChunkedArray<BooleanType> ) -> Result<ChunkedArray<ListType>, PolarsError>

Filter values in the ChunkedArray with a boolean mask. Read more
source§

impl<T> ChunkFilter<ObjectType<T>> for ChunkedArray<ObjectType<T>>
where T: PolarsObject,

Available on crate feature object only.
source§

fn filter( &self, filter: &ChunkedArray<BooleanType> ) -> Result<ChunkedArray<ObjectType<T>>, PolarsError>

Filter values in the ChunkedArray with a boolean mask. Read more
source§

impl ChunkFilter<StringType> for ChunkedArray<StringType>

source§

fn filter( &self, filter: &ChunkedArray<BooleanType> ) -> Result<ChunkedArray<StringType>, PolarsError>

Filter values in the ChunkedArray with a boolean mask. Read more
source§

impl<T> ChunkFilter<T> for ChunkedArray<T>

source§

fn filter( &self, filter: &ChunkedArray<BooleanType> ) -> Result<ChunkedArray<T>, PolarsError>

Filter values in the ChunkedArray with a boolean mask. Read more
source§

impl<'a> ChunkFull<&'a [u8]> for ChunkedArray<BinaryOffsetType>

source§

fn full( name: &str, value: &'a [u8], length: usize ) -> ChunkedArray<BinaryOffsetType>

Create a ChunkedArray with a single value.
source§

impl<'a> ChunkFull<&'a [u8]> for ChunkedArray<BinaryType>

source§

fn full(name: &str, value: &'a [u8], length: usize) -> ChunkedArray<BinaryType>

Create a ChunkedArray with a single value.
source§

impl ChunkFull<&Series> for ChunkedArray<FixedSizeListType>

Available on crate feature dtype-array only.
source§

fn full( name: &str, value: &Series, length: usize ) -> ChunkedArray<FixedSizeListType>

Create a ChunkedArray with a single value.
source§

impl ChunkFull<&Series> for ChunkedArray<ListType>

source§

fn full(name: &str, value: &Series, length: usize) -> ChunkedArray<ListType>

Create a ChunkedArray with a single value.
source§

impl<'a> ChunkFull<&'a str> for ChunkedArray<StringType>

source§

fn full(name: &str, value: &'a str, length: usize) -> ChunkedArray<StringType>

Create a ChunkedArray with a single value.
source§

impl<T> ChunkFull<<T as PolarsNumericType>::Native> for ChunkedArray<T>

source§

fn full( name: &str, value: <T as PolarsNumericType>::Native, length: usize ) -> ChunkedArray<T>

Create a ChunkedArray with a single value.
source§

impl<T> ChunkFull<T> for ChunkedArray<ObjectType<T>>
where T: PolarsObject,

Available on crate feature object only.
source§

fn full(name: &str, value: T, length: usize) -> ChunkedArray<ObjectType<T>>

Create a ChunkedArray with a single value.
source§

impl ChunkFull<bool> for ChunkedArray<BooleanType>

source§

fn full(name: &str, value: bool, length: usize) -> ChunkedArray<BooleanType>

Create a ChunkedArray with a single value.
source§

impl ChunkFullNull for ChunkedArray<BinaryOffsetType>

source§

impl ChunkFullNull for ChunkedArray<BinaryType>

source§

impl ChunkFullNull for ChunkedArray<BooleanType>

source§

impl ChunkFullNull for ChunkedArray<FixedSizeListType>

Available on crate feature dtype-array only.
source§

impl ChunkFullNull for ChunkedArray<ListType>

source§

impl<T> ChunkFullNull for ChunkedArray<ObjectType<T>>
where T: PolarsObject,

Available on crate feature object only.
source§

impl ChunkFullNull for ChunkedArray<StringType>

source§

impl<T> ChunkFullNull for ChunkedArray<T>

source§

fn full_null(name: &str, length: usize) -> ChunkedArray<T>

source§

impl ChunkQuantile<Series> for ChunkedArray<FixedSizeListType>

Available on crate feature dtype-array only.
source§

fn median(&self) -> Option<T>

Returns the mean value in the array. Returns None if the array is empty or only contains null values.
source§

fn quantile( &self, _quantile: f64, _interpol: QuantileInterpolOptions ) -> Result<Option<T>, PolarsError>

Aggregate a given quantile of the ChunkedArray. Returns None if the array is empty or only contains null values.
source§

impl ChunkQuantile<Series> for ChunkedArray<ListType>

source§

fn median(&self) -> Option<T>

Returns the mean value in the array. Returns None if the array is empty or only contains null values.
source§

fn quantile( &self, _quantile: f64, _interpol: QuantileInterpolOptions ) -> Result<Option<T>, PolarsError>

Aggregate a given quantile of the ChunkedArray. Returns None if the array is empty or only contains null values.
source§

impl<T> ChunkQuantile<Series> for ChunkedArray<ObjectType<T>>
where T: PolarsObject,

Available on crate feature object only.
source§

fn median(&self) -> Option<T>

Returns the mean value in the array. Returns None if the array is empty or only contains null values.
source§

fn quantile( &self, _quantile: f64, _interpol: QuantileInterpolOptions ) -> Result<Option<T>, PolarsError>

Aggregate a given quantile of the ChunkedArray. Returns None if the array is empty or only contains null values.
source§

impl ChunkQuantile<String> for ChunkedArray<StringType>

source§

fn median(&self) -> Option<T>

Returns the mean value in the array. Returns None if the array is empty or only contains null values.
source§

fn quantile( &self, _quantile: f64, _interpol: QuantileInterpolOptions ) -> Result<Option<T>, PolarsError>

Aggregate a given quantile of the ChunkedArray. Returns None if the array is empty or only contains null values.
source§

impl ChunkQuantile<bool> for ChunkedArray<BooleanType>

source§

fn median(&self) -> Option<T>

Returns the mean value in the array. Returns None if the array is empty or only contains null values.
source§

fn quantile( &self, _quantile: f64, _interpol: QuantileInterpolOptions ) -> Result<Option<T>, PolarsError>

Aggregate a given quantile of the ChunkedArray. Returns None if the array is empty or only contains null values.
source§

impl ChunkQuantile<f32> for ChunkedArray<Float32Type>

source§

fn quantile( &self, quantile: f64, interpol: QuantileInterpolOptions ) -> Result<Option<f32>, PolarsError>

Aggregate a given quantile of the ChunkedArray. Returns None if the array is empty or only contains null values.
source§

fn median(&self) -> Option<f32>

Returns the mean value in the array. Returns None if the array is empty or only contains null values.
source§

impl ChunkQuantile<f64> for ChunkedArray<Float64Type>

source§

fn quantile( &self, quantile: f64, interpol: QuantileInterpolOptions ) -> Result<Option<f64>, PolarsError>

Aggregate a given quantile of the ChunkedArray. Returns None if the array is empty or only contains null values.
source§

fn median(&self) -> Option<f64>

Returns the mean value in the array. Returns None if the array is empty or only contains null values.
source§

impl<T> ChunkQuantile<f64> for ChunkedArray<T>

source§

fn quantile( &self, quantile: f64, interpol: QuantileInterpolOptions ) -> Result<Option<f64>, PolarsError>

Aggregate a given quantile of the ChunkedArray. Returns None if the array is empty or only contains null values.
source§

fn median(&self) -> Option<f64>

Returns the mean value in the array. Returns None if the array is empty or only contains null values.
source§

impl ChunkReverse for ChunkedArray<BinaryOffsetType>

source§

fn reverse(&self) -> ChunkedArray<BinaryOffsetType>

Return a reversed version of this array.
source§

impl ChunkReverse for ChunkedArray<BinaryType>

source§

fn reverse(&self) -> ChunkedArray<BinaryType>

Return a reversed version of this array.
source§

impl ChunkReverse for ChunkedArray<BooleanType>

source§

fn reverse(&self) -> ChunkedArray<BooleanType>

Return a reversed version of this array.
source§

impl ChunkReverse for ChunkedArray<FixedSizeListType>

Available on crate feature dtype-array only.
source§

fn reverse(&self) -> ChunkedArray<FixedSizeListType>

Return a reversed version of this array.
source§

impl ChunkReverse for ChunkedArray<ListType>

source§

fn reverse(&self) -> ChunkedArray<ListType>

Return a reversed version of this array.
source§

impl<T> ChunkReverse for ChunkedArray<ObjectType<T>>
where T: PolarsObject,

Available on crate feature object only.
source§

fn reverse(&self) -> ChunkedArray<ObjectType<T>>

Return a reversed version of this array.
source§

impl ChunkReverse for ChunkedArray<StringType>

source§

fn reverse(&self) -> ChunkedArray<StringType>

Return a reversed version of this array.
source§

impl<T> ChunkReverse for ChunkedArray<T>

source§

fn reverse(&self) -> ChunkedArray<T>

Return a reversed version of this array.
source§

impl<T> ChunkRollApply for ChunkedArray<T>

source§

fn rolling_map( &self, f: &dyn Fn(&Series) -> Series, options: RollingOptionsFixedWindow ) -> Result<Series, PolarsError>

Apply a rolling custom function. This is pretty slow because of dynamic dispatch.

source§

impl<'a> ChunkSet<'a, &'a [u8], Vec<u8>> for ChunkedArray<BinaryType>

source§

fn scatter_single<I>( &'a self, idx: I, opt_value: Option<&'a [u8]> ) -> Result<ChunkedArray<BinaryType>, PolarsError>

Set the values at indexes idx to some optional value Option<T>. Read more
source§

fn scatter_with<I, F>( &'a self, idx: I, f: F ) -> Result<ChunkedArray<BinaryType>, PolarsError>
where I: IntoIterator<Item = u32>, ChunkedArray<BinaryType>: Sized, F: Fn(Option<&'a [u8]>) -> Option<Vec<u8>>,

Set the values at indexes idx by applying a closure to these values. Read more
source§

fn set( &'a self, mask: &ChunkedArray<BooleanType>, value: Option<&'a [u8]> ) -> Result<ChunkedArray<BinaryType>, PolarsError>

Set the values where the mask evaluates to true to some optional value Option<T>. Read more
source§

impl<'a> ChunkSet<'a, &'a str, String> for ChunkedArray<StringType>

source§

fn scatter_single<I>( &'a self, idx: I, opt_value: Option<&'a str> ) -> Result<ChunkedArray<StringType>, PolarsError>

Set the values at indexes idx to some optional value Option<T>. Read more
source§

fn scatter_with<I, F>( &'a self, idx: I, f: F ) -> Result<ChunkedArray<StringType>, PolarsError>
where I: IntoIterator<Item = u32>, ChunkedArray<StringType>: Sized, F: Fn(Option<&'a str>) -> Option<String>,

Set the values at indexes idx by applying a closure to these values. Read more
source§

fn set( &'a self, mask: &ChunkedArray<BooleanType>, value: Option<&'a str> ) -> Result<ChunkedArray<StringType>, PolarsError>

Set the values where the mask evaluates to true to some optional value Option<T>. Read more
source§

impl<'a, T> ChunkSet<'a, <T as PolarsNumericType>::Native, <T as PolarsNumericType>::Native> for ChunkedArray<T>

source§

fn scatter_single<I>( &'a self, idx: I, value: Option<<T as PolarsNumericType>::Native> ) -> Result<ChunkedArray<T>, PolarsError>
where I: IntoIterator<Item = u32>,

Set the values at indexes idx to some optional value Option<T>. Read more
source§

fn scatter_with<I, F>( &'a self, idx: I, f: F ) -> Result<ChunkedArray<T>, PolarsError>
where I: IntoIterator<Item = u32>, F: Fn(Option<<T as PolarsNumericType>::Native>) -> Option<<T as PolarsNumericType>::Native>,

Set the values at indexes idx by applying a closure to these values. Read more
source§

fn set( &'a self, mask: &ChunkedArray<BooleanType>, value: Option<<T as PolarsNumericType>::Native> ) -> Result<ChunkedArray<T>, PolarsError>

Set the values where the mask evaluates to true to some optional value Option<T>. Read more
source§

impl<'a> ChunkSet<'a, bool, bool> for ChunkedArray<BooleanType>

source§

fn scatter_single<I>( &'a self, idx: I, value: Option<bool> ) -> Result<ChunkedArray<BooleanType>, PolarsError>
where I: IntoIterator<Item = u32>,

Set the values at indexes idx to some optional value Option<T>. Read more
source§

fn scatter_with<I, F>( &'a self, idx: I, f: F ) -> Result<ChunkedArray<BooleanType>, PolarsError>
where I: IntoIterator<Item = u32>, F: Fn(Option<bool>) -> Option<bool>,

Set the values at indexes idx by applying a closure to these values. Read more
source§

fn set( &'a self, mask: &ChunkedArray<BooleanType>, value: Option<bool> ) -> Result<ChunkedArray<BooleanType>, PolarsError>

Set the values where the mask evaluates to true to some optional value Option<T>. Read more
source§

impl ChunkShift<BinaryOffsetType> for ChunkedArray<BinaryOffsetType>

source§

impl ChunkShift<BinaryType> for ChunkedArray<BinaryType>

source§

fn shift(&self, periods: i64) -> ChunkedArray<BinaryType>

source§

impl ChunkShift<BooleanType> for ChunkedArray<BooleanType>

source§

fn shift(&self, periods: i64) -> ChunkedArray<BooleanType>

source§

impl ChunkShift<FixedSizeListType> for ChunkedArray<FixedSizeListType>

Available on crate feature dtype-array only.
source§

impl ChunkShift<ListType> for ChunkedArray<ListType>

source§

fn shift(&self, periods: i64) -> ChunkedArray<ListType>

source§

impl<T> ChunkShift<ObjectType<T>> for ChunkedArray<ObjectType<T>>
where T: PolarsObject,

Available on crate feature object only.
source§

fn shift(&self, periods: i64) -> ChunkedArray<ObjectType<T>>

source§

impl ChunkShift<StringType> for ChunkedArray<StringType>

source§

fn shift(&self, periods: i64) -> ChunkedArray<StringType>

source§

impl<T> ChunkShift<T> for ChunkedArray<T>

source§

fn shift(&self, periods: i64) -> ChunkedArray<T>

source§

impl ChunkShiftFill<BinaryOffsetType, Option<&[u8]>> for ChunkedArray<BinaryOffsetType>

source§

fn shift_and_fill( &self, periods: i64, fill_value: Option<&[u8]> ) -> ChunkedArray<BinaryOffsetType>

Shift the values by a given period and fill the parts that will be empty due to this operation with fill_value.
source§

impl ChunkShiftFill<BinaryType, Option<&[u8]>> for ChunkedArray<BinaryType>

source§

fn shift_and_fill( &self, periods: i64, fill_value: Option<&[u8]> ) -> ChunkedArray<BinaryType>

Shift the values by a given period and fill the parts that will be empty due to this operation with fill_value.
source§

impl ChunkShiftFill<BooleanType, Option<bool>> for ChunkedArray<BooleanType>

source§

fn shift_and_fill( &self, periods: i64, fill_value: Option<bool> ) -> ChunkedArray<BooleanType>

Shift the values by a given period and fill the parts that will be empty due to this operation with fill_value.
source§

impl ChunkShiftFill<FixedSizeListType, Option<&Series>> for ChunkedArray<FixedSizeListType>

Available on crate feature dtype-array only.
source§

fn shift_and_fill( &self, periods: i64, fill_value: Option<&Series> ) -> ChunkedArray<FixedSizeListType>

Shift the values by a given period and fill the parts that will be empty due to this operation with fill_value.
source§

impl ChunkShiftFill<ListType, Option<&Series>> for ChunkedArray<ListType>

source§

fn shift_and_fill( &self, periods: i64, fill_value: Option<&Series> ) -> ChunkedArray<ListType>

Shift the values by a given period and fill the parts that will be empty due to this operation with fill_value.
source§

impl<T> ChunkShiftFill<ObjectType<T>, Option<ObjectType<T>>> for ChunkedArray<ObjectType<T>>
where T: PolarsObject,

Available on crate feature object only.
source§

fn shift_and_fill( &self, _periods: i64, _fill_value: Option<ObjectType<T>> ) -> ChunkedArray<ObjectType<T>>

Shift the values by a given period and fill the parts that will be empty due to this operation with fill_value.
source§

impl ChunkShiftFill<StringType, Option<&str>> for ChunkedArray<StringType>

source§

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<T> ChunkShiftFill<T, Option<<T as PolarsNumericType>::Native>> for ChunkedArray<T>

source§

fn shift_and_fill( &self, periods: i64, fill_value: Option<<T as PolarsNumericType>::Native> ) -> ChunkedArray<T>

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<BinaryOffsetType> for ChunkedArray<BinaryOffsetType>

source§

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.

source§

fn sort_with(&self, options: SortOptions) -> ChunkedArray<BinaryOffsetType>

source§

fn sort(&self, descending: bool) -> ChunkedArray<BinaryOffsetType>

Returned a sorted ChunkedArray.
source§

fn arg_sort(&self, options: SortOptions) -> ChunkedArray<UInt32Type>

Retrieve the indexes needed to sort this array.
source§

impl ChunkSort<BinaryType> for ChunkedArray<BinaryType>

source§

fn sort_with(&self, options: SortOptions) -> ChunkedArray<BinaryType>

source§

fn sort(&self, descending: bool) -> ChunkedArray<BinaryType>

Returned a sorted ChunkedArray.
source§

fn arg_sort(&self, options: SortOptions) -> ChunkedArray<UInt32Type>

Retrieve the indexes needed to sort this array.
source§

fn arg_sort_multiple( &self, by: &[Series], options: &SortMultipleOptions ) -> Result<ChunkedArray<UInt32Type>, PolarsError>

Retrieve the indexes need to sort this and the other arrays.
source§

impl ChunkSort<BooleanType> for ChunkedArray<BooleanType>

source§

fn sort_with(&self, options: SortOptions) -> ChunkedArray<BooleanType>

source§

fn sort(&self, descending: bool) -> ChunkedArray<BooleanType>

Returned a sorted ChunkedArray.
source§

fn arg_sort(&self, options: SortOptions) -> ChunkedArray<UInt32Type>

Retrieve the indexes needed to sort this array.
source§

fn arg_sort_multiple( &self, by: &[Series], options: &SortMultipleOptions ) -> Result<ChunkedArray<UInt32Type>, PolarsError>

Retrieve the indexes need to sort this and the other arrays.
source§

impl ChunkSort<StringType> for ChunkedArray<StringType>

source§

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.

source§

fn sort_with(&self, options: SortOptions) -> ChunkedArray<StringType>

source§

fn sort(&self, descending: bool) -> ChunkedArray<StringType>

Returned a sorted ChunkedArray.
source§

fn arg_sort(&self, options: SortOptions) -> ChunkedArray<UInt32Type>

Retrieve the indexes needed to sort this array.
source§

impl<T> ChunkSort<T> for ChunkedArray<T>

source§

fn arg_sort_multiple( &self, by: &[Series], options: &SortMultipleOptions ) -> Result<ChunkedArray<UInt32Type>, PolarsError>

§Panics

This function is very opinionated. We assume that all numeric Series are of the same type, if not it will panic

source§

fn sort_with(&self, options: SortOptions) -> ChunkedArray<T>

source§

fn sort(&self, descending: bool) -> ChunkedArray<T>

Returned a sorted ChunkedArray.
source§

fn arg_sort(&self, options: SortOptions) -> ChunkedArray<UInt32Type>

Retrieve the indexes needed to sort this array.
source§

impl<T> ChunkTake<ChunkedArray<UInt32Type>> for ChunkedArray<T>

source§

fn take( &self, indices: &ChunkedArray<UInt32Type> ) -> Result<ChunkedArray<T>, PolarsError>

Gather values from ChunkedArray by index.

source§

impl<T, I> ChunkTake<I> for ChunkedArray<T>

source§

fn take(&self, indices: &I) -> Result<ChunkedArray<T>, PolarsError>

Gather values from ChunkedArray by index.

source§

impl ChunkTakeUnchecked<ChunkedArray<UInt32Type>> for ChunkedArray<BinaryType>

source§

unsafe fn take_unchecked( &self, indices: &ChunkedArray<UInt32Type> ) -> ChunkedArray<BinaryType>

Gather values from ChunkedArray by index.

source§

impl ChunkTakeUnchecked<ChunkedArray<UInt32Type>> for ChunkedArray<StringType>

source§

unsafe fn take_unchecked( &self, indices: &ChunkedArray<UInt32Type> ) -> ChunkedArray<StringType>

Gather values from ChunkedArray by index. Read more
source§

impl<T> ChunkTakeUnchecked<ChunkedArray<UInt32Type>> for ChunkedArray<T>
where T: PolarsDataType<HasViews = FalseT> + PolarsDataType,

source§

unsafe fn take_unchecked( &self, indices: &ChunkedArray<UInt32Type> ) -> ChunkedArray<T>

Gather values from ChunkedArray by index.

source§

impl<I> ChunkTakeUnchecked<I> for ChunkedArray<BinaryType>
where I: AsRef<[u32]> + ?Sized,

source§

unsafe fn take_unchecked(&self, indices: &I) -> ChunkedArray<BinaryType>

Gather values from ChunkedArray by index.

source§

impl<I> ChunkTakeUnchecked<I> for ChunkedArray<StringType>
where I: AsRef<[u32]> + ?Sized,

source§

unsafe fn take_unchecked(&self, indices: &I) -> ChunkedArray<StringType>

Gather values from ChunkedArray by index.

source§

impl<T, I> ChunkTakeUnchecked<I> for ChunkedArray<T>
where T: PolarsDataType<HasViews = FalseT> + PolarsDataType, I: AsRef<[u32]> + ?Sized,

source§

unsafe fn take_unchecked(&self, indices: &I) -> ChunkedArray<T>

Gather values from ChunkedArray by index.

source§

impl ChunkUnique for ChunkedArray<BinaryType>

source§

fn unique(&self) -> Result<ChunkedArray<BinaryType>, PolarsError>

Get unique values of a ChunkedArray
source§

fn arg_unique(&self) -> Result<ChunkedArray<UInt32Type>, PolarsError>

Get first index of the unique values in a ChunkedArray. This Vec is sorted.
source§

fn n_unique(&self) -> Result<usize, PolarsError>

Number of unique values in the ChunkedArray
source§

impl ChunkUnique for ChunkedArray<BooleanType>

source§

fn unique(&self) -> Result<ChunkedArray<BooleanType>, PolarsError>

Get unique values of a ChunkedArray
source§

fn arg_unique(&self) -> Result<ChunkedArray<UInt32Type>, PolarsError>

Get first index of the unique values in a ChunkedArray. This Vec is sorted.
source§

fn n_unique(&self) -> Result<usize, PolarsError>

Number of unique values in the ChunkedArray
source§

impl<T> ChunkUnique for ChunkedArray<ObjectType<T>>
where T: PolarsObject,

Available on crate feature object only.
source§

fn unique(&self) -> Result<ChunkedArray<ObjectType<T>>, PolarsError>

Get unique values of a ChunkedArray
source§

fn arg_unique(&self) -> Result<ChunkedArray<UInt32Type>, PolarsError>

Get first index of the unique values in a ChunkedArray. This Vec is sorted.
source§

fn n_unique(&self) -> Result<usize, PolarsError>

Number of unique values in the ChunkedArray
source§

impl ChunkUnique for ChunkedArray<StringType>

source§

fn unique(&self) -> Result<ChunkedArray<StringType>, PolarsError>

Get unique values of a ChunkedArray
source§

fn arg_unique(&self) -> Result<ChunkedArray<UInt32Type>, PolarsError>

Get first index of the unique values in a ChunkedArray. This Vec is sorted.
source§

fn n_unique(&self) -> Result<usize, PolarsError>

Number of unique values in the ChunkedArray
source§

impl<T> ChunkUnique for ChunkedArray<T>

source§

fn unique(&self) -> Result<ChunkedArray<T>, PolarsError>

Get unique values of a ChunkedArray
source§

fn arg_unique(&self) -> Result<ChunkedArray<UInt32Type>, PolarsError>

Get first index of the unique values in a ChunkedArray. This Vec is sorted.
source§

fn n_unique(&self) -> Result<usize, PolarsError>

Number of unique values in the ChunkedArray
source§

impl ChunkVar for ChunkedArray<BooleanType>

source§

fn var(&self, _ddof: u8) -> Option<f64>

Compute the variance of this ChunkedArray/Series.
source§

fn std(&self, _ddof: u8) -> Option<f64>

Compute the standard deviation of this ChunkedArray/Series.
source§

impl ChunkVar for ChunkedArray<FixedSizeListType>

Available on crate feature dtype-array only.
source§

fn var(&self, _ddof: u8) -> Option<f64>

Compute the variance of this ChunkedArray/Series.
source§

fn std(&self, _ddof: u8) -> Option<f64>

Compute the standard deviation of this ChunkedArray/Series.
source§

impl ChunkVar for ChunkedArray<ListType>

source§

fn var(&self, _ddof: u8) -> Option<f64>

Compute the variance of this ChunkedArray/Series.
source§

fn std(&self, _ddof: u8) -> Option<f64>

Compute the standard deviation of this ChunkedArray/Series.
source§

impl<T> ChunkVar for ChunkedArray<ObjectType<T>>
where T: PolarsObject,

Available on crate feature object only.
source§

fn var(&self, _ddof: u8) -> Option<f64>

Compute the variance of this ChunkedArray/Series.
source§

fn std(&self, _ddof: u8) -> Option<f64>

Compute the standard deviation of this ChunkedArray/Series.
source§

impl ChunkVar for ChunkedArray<StringType>

source§

fn var(&self, _ddof: u8) -> Option<f64>

Compute the variance of this ChunkedArray/Series.
source§

fn std(&self, _ddof: u8) -> Option<f64>

Compute the standard deviation of this ChunkedArray/Series.
source§

impl<T> ChunkVar for ChunkedArray<T>

source§

fn var(&self, ddof: u8) -> Option<f64>

Compute the variance of this ChunkedArray/Series.
source§

fn std(&self, ddof: u8) -> Option<f64>

Compute the standard deviation of this ChunkedArray/Series.
source§

impl<T> ChunkZip<T> for ChunkedArray<T>
where T: PolarsDataType, <T as PolarsDataType>::Array: for<'a> IfThenElseKernel<Scalar<'a> = <T as PolarsDataType>::Physical<'a>>, ChunkedArray<T>: ChunkExpandAtIndex<T>,

source§

fn zip_with( &self, mask: &ChunkedArray<BooleanType>, other: &ChunkedArray<T> ) -> Result<ChunkedArray<T>, PolarsError>

Create a new ChunkedArray with values from self where the mask evaluates true and values from other where the mask evaluates false
source§

impl<'a> ChunkedSet<&'a str> for &'a ChunkedArray<StringType>

source§

fn scatter<V>(self, idx: &[u32], values: V) -> Result<Series, PolarsError>
where V: IntoIterator<Item = Option<&'a str>>,

source§

impl<T> ChunkedSet<<T as PolarsNumericType>::Native> for ChunkedArray<T>
where T: PolarsOpsNumericType, ChunkedArray<T>: IntoSeries,

source§

fn scatter<V>(self, idx: &[u32], values: V) -> Result<Series, PolarsError>
where V: IntoIterator<Item = Option<<T as PolarsNumericType>::Native>>,

source§

impl ChunkedSet<bool> for &ChunkedArray<BooleanType>

source§

fn scatter<V>(self, idx: &[u32], values: V) -> Result<Series, PolarsError>
where V: IntoIterator<Item = Option<bool>>,

source§

impl<T> Clone for ChunkedArray<T>
where T: PolarsDataType,

source§

fn clone(&self) -> ChunkedArray<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T> Container for ChunkedArray<T>
where T: PolarsDataType,

source§

fn slice(&self, offset: i64, len: usize) -> ChunkedArray<T>

source§

fn len(&self) -> usize

source§

fn iter_chunks(&self) -> impl Iterator<Item = ChunkedArray<T>>

source§

fn n_chunks(&self) -> usize

source§

fn chunk_lengths(&self) -> impl Iterator<Item = usize>

source§

impl Debug for ChunkedArray<BinaryType>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Debug for ChunkedArray<BooleanType>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Debug for ChunkedArray<FixedSizeListType>

Available on crate feature dtype-array only.
source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Debug for ChunkedArray<ListType>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> Debug for ChunkedArray<ObjectType<T>>
where T: PolarsObject,

Available on crate feature object only.
source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Debug for ChunkedArray<StringType>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> Debug for ChunkedArray<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> Default for ChunkedArray<T>
where T: PolarsDataType,

source§

fn default() -> ChunkedArray<T>

Returns the “default value” for a type. Read more
source§

impl<T, N> Div<N> for &ChunkedArray<T>

§

type Output = ChunkedArray<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: N) -> <&ChunkedArray<T> as Div<N>>::Output

Performs the / operation. Read more
source§

impl<T, N> Div<N> for ChunkedArray<T>

§

type Output = ChunkedArray<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: N) -> <ChunkedArray<T> as Div<N>>::Output

Performs the / operation. Read more
source§

impl<T> Div for &ChunkedArray<T>

§

type Output = ChunkedArray<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &ChunkedArray<T>) -> <&ChunkedArray<T> as Div>::Output

Performs the / operation. Read more
source§

impl<T> Div for ChunkedArray<T>

§

type Output = ChunkedArray<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: ChunkedArray<T>) -> <ChunkedArray<T> as Div>::Output

Performs the / operation. Read more
source§

impl<T> Drop for ChunkedArray<T>
where T: PolarsDataType,

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl<'a, T> From<&'a ChunkedArray<T>> for Vec<Option<<T as PolarsDataType>::Physical<'a>>>
where T: PolarsDataType,

source§

fn from( ca: &'a ChunkedArray<T> ) -> Vec<Option<<T as PolarsDataType>::Physical<'a>>>

Converts to this type from the input type.
source§

impl<T, A> From<A> for ChunkedArray<T>
where T: PolarsDataType<Array = A>, A: Array,

source§

fn from(arr: A) -> ChunkedArray<T>

Converts to this type from the input type.
source§

impl From<ChunkedArray<BooleanType>> for Vec<Option<bool>>

source§

fn from(ca: ChunkedArray<BooleanType>) -> Vec<Option<bool>>

Converts to this type from the input type.
source§

impl From<ChunkedArray<Int32Type>> for Logical<DateType, Int32Type>

source§

fn from(ca: ChunkedArray<Int32Type>) -> Logical<DateType, Int32Type>

Converts to this type from the input type.
source§

impl From<ChunkedArray<Int64Type>> for Logical<TimeType, Int64Type>

source§

fn from(ca: ChunkedArray<Int64Type>) -> Logical<TimeType, Int64Type>

Converts to this type from the input type.
source§

impl From<ChunkedArray<StringType>> for Vec<Option<String>>

source§

fn from(ca: ChunkedArray<StringType>) -> Vec<Option<String>>

Converts to this type from the input type.
source§

impl<T> From<ChunkedArray<T>> for Series

source§

fn from(ca: ChunkedArray<T>) -> Series

Converts to this type from the input type.
source§

impl<T> FromIterator<(Vec<<T as PolarsNumericType>::Native>, Option<Bitmap>)> for ChunkedArray<T>

source§

fn from_iter<I>(iter: I) -> ChunkedArray<T>
where I: IntoIterator<Item = (Vec<<T as PolarsNumericType>::Native>, Option<Bitmap>)>,

Creates a value from an iterator. Read more
source§

impl<T> FromIterator<Option<<T as PolarsNumericType>::Native>> for ChunkedArray<T>

FromIterator trait

source§

fn from_iter<I>(iter: I) -> ChunkedArray<T>
where I: IntoIterator<Item = Option<<T as PolarsNumericType>::Native>>,

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<Box<dyn Array>>> for ChunkedArray<ListType>

source§

fn from_iter<I>(iter: I) -> ChunkedArray<ListType>
where I: IntoIterator<Item = Option<Box<dyn Array>>>,

Creates a value from an iterator. Read more
source§

impl<Ptr> FromIterator<Option<Ptr>> for ChunkedArray<BinaryType>
where Ptr: AsRef<[u8]>,

source§

fn from_iter<I>(iter: I) -> ChunkedArray<BinaryType>
where I: IntoIterator<Item = Option<Ptr>>,

Creates a value from an iterator. Read more
source§

impl<Ptr> FromIterator<Option<Ptr>> for ChunkedArray<StringType>
where Ptr: AsRef<str>,

source§

fn from_iter<I>(iter: I) -> ChunkedArray<StringType>
where I: IntoIterator<Item = Option<Ptr>>,

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<Series>> for ChunkedArray<ListType>

source§

fn from_iter<I>(iter: I) -> ChunkedArray<ListType>
where I: IntoIterator<Item = Option<Series>>,

Creates a value from an iterator. Read more
source§

impl<T> FromIterator<Option<T>> for ChunkedArray<ObjectType<T>>
where T: PolarsObject,

Available on crate feature object only.
source§

fn from_iter<I>(iter: I) -> ChunkedArray<ObjectType<T>>
where I: IntoIterator<Item = Option<T>>,

Creates a value from an iterator. Read more
source§

impl FromIterator<Option<bool>> for ChunkedArray<BooleanType>

source§

fn from_iter<I>(iter: I) -> ChunkedArray<BooleanType>
where I: IntoIterator<Item = Option<bool>>,

Creates a value from an iterator. Read more
source§

impl<Ptr> FromIterator<Ptr> for ChunkedArray<BinaryType>
where Ptr: PolarsAsRef<[u8]>,

source§

fn from_iter<I>(iter: I) -> ChunkedArray<BinaryType>
where I: IntoIterator<Item = Ptr>,

Creates a value from an iterator. Read more
source§

impl<Ptr> FromIterator<Ptr> for ChunkedArray<ListType>
where Ptr: Borrow<Series>,

source§

fn from_iter<I>(iter: I) -> ChunkedArray<ListType>
where I: IntoIterator<Item = Ptr>,

Creates a value from an iterator. Read more
source§

impl<Ptr> FromIterator<Ptr> for ChunkedArray<StringType>
where Ptr: PolarsAsRef<str>,

source§

fn from_iter<I>(iter: I) -> ChunkedArray<StringType>
where I: IntoIterator<Item = Ptr>,

Creates a value from an iterator. Read more
source§

impl FromIterator<bool> for ChunkedArray<BooleanType>

source§

fn from_iter<I>(iter: I) -> ChunkedArray<BooleanType>
where I: IntoIterator<Item = bool>,

Creates a value from an iterator. Read more
source§

impl<T> FromIteratorReversed<Option<<T as PolarsNumericType>::Native>> for ChunkedArray<T>

source§

fn from_trusted_len_iter_rev<I>(iter: I) -> ChunkedArray<T>
where I: TrustedLen<Item = Option<<T as PolarsNumericType>::Native>>,

source§

impl FromIteratorReversed<Option<bool>> for ChunkedArray<BooleanType>

source§

fn from_trusted_len_iter_rev<I>(iter: I) -> ChunkedArray<BooleanType>
where I: TrustedLen<Item = Option<bool>>,

source§

impl FromParIterWithDtype<Option<Series>> for ChunkedArray<ListType>

source§

fn from_par_iter_with_dtype<I>( iter: I, name: &str, dtype: DataType ) -> ChunkedArray<ListType>
where I: IntoParallelIterator<Item = Option<Series>>, ChunkedArray<ListType>: Sized,

source§

impl<T> FromParallelIterator<Option<<T as PolarsNumericType>::Native>> for ChunkedArray<T>

source§

fn from_par_iter<I>(iter: I) -> ChunkedArray<T>
where I: IntoParallelIterator<Item = Option<<T as PolarsNumericType>::Native>>,

Creates an instance of the collection from the parallel iterator par_iter. Read more
source§

impl<Ptr> FromParallelIterator<Option<Ptr>> for ChunkedArray<BinaryType>
where Ptr: AsRef<[u8]> + Send + Sync,

source§

fn from_par_iter<I>(iter: I) -> ChunkedArray<BinaryType>
where I: IntoParallelIterator<Item = Option<Ptr>>,

Creates an instance of the collection from the parallel iterator par_iter. Read more
source§

impl<Ptr> FromParallelIterator<Option<Ptr>> for ChunkedArray<StringType>
where Ptr: AsRef<str> + Send + Sync,

source§

fn from_par_iter<I>(iter: I) -> ChunkedArray<StringType>
where I: IntoParallelIterator<Item = Option<Ptr>>,

Creates an instance of the collection from the parallel iterator par_iter. Read more
source§

impl FromParallelIterator<Option<Series>> for ChunkedArray<ListType>

source§

fn from_par_iter<I>(par_iter: I) -> ChunkedArray<ListType>
where I: IntoParallelIterator<Item = Option<Series>>,

Creates an instance of the collection from the parallel iterator par_iter. Read more
source§

impl FromParallelIterator<Option<bool>> for ChunkedArray<BooleanType>

source§

fn from_par_iter<I>(iter: I) -> ChunkedArray<BooleanType>
where I: IntoParallelIterator<Item = Option<bool>>,

Creates an instance of the collection from the parallel iterator par_iter. Read more
source§

impl<Ptr> FromParallelIterator<Ptr> for ChunkedArray<BinaryType>
where Ptr: PolarsAsRef<[u8]> + Send + Sync + NoOption,

source§

fn from_par_iter<I>(iter: I) -> ChunkedArray<BinaryType>
where I: IntoParallelIterator<Item = Ptr>,

Creates an instance of the collection from the parallel iterator par_iter. Read more
source§

impl<Ptr> FromParallelIterator<Ptr> for ChunkedArray<StringType>
where Ptr: PolarsAsRef<str> + Send + Sync + NoOption,

source§

fn from_par_iter<I>(iter: I) -> ChunkedArray<StringType>
where I: IntoParallelIterator<Item = Ptr>,

Creates an instance of the collection from the parallel iterator par_iter. Read more
source§

impl FromParallelIterator<bool> for ChunkedArray<BooleanType>

source§

fn from_par_iter<I>(iter: I) -> ChunkedArray<BooleanType>
where I: IntoParallelIterator<Item = bool>,

Creates an instance of the collection from the parallel iterator par_iter. Read more
source§

impl<T> FromTrustedLenIterator<Option<<T as PolarsNumericType>::Native>> for ChunkedArray<T>

source§

fn from_iter_trusted_length<I>(iter: I) -> ChunkedArray<T>
where I: IntoIterator<Item = Option<<T as PolarsNumericType>::Native>>, <I as IntoIterator>::IntoIter: TrustedLen,

source§

impl<Ptr> FromTrustedLenIterator<Option<Ptr>> for ChunkedArray<BinaryOffsetType>
where Ptr: AsRef<[u8]>,

source§

impl<Ptr> FromTrustedLenIterator<Option<Ptr>> for ChunkedArray<BinaryType>
where Ptr: AsRef<[u8]>,

source§

impl<Ptr> FromTrustedLenIterator<Option<Ptr>> for ChunkedArray<StringType>
where Ptr: AsRef<str>,

source§

impl FromTrustedLenIterator<Option<Series>> for ChunkedArray<ListType>

source§

impl<T> FromTrustedLenIterator<Option<T>> for ChunkedArray<ObjectType<T>>
where T: PolarsObject,

Available on crate feature object only.
source§

impl FromTrustedLenIterator<Option<bool>> for ChunkedArray<BooleanType>

source§

fn from_iter_trusted_length<I>(iter: I) -> ChunkedArray<BooleanType>
where I: IntoIterator<Item = Option<bool>>, <I as IntoIterator>::IntoIter: TrustedLen,

source§

impl<Ptr> FromTrustedLenIterator<Ptr> for ChunkedArray<BinaryOffsetType>
where Ptr: PolarsAsRef<[u8]>,

source§

impl<Ptr> FromTrustedLenIterator<Ptr> for ChunkedArray<BinaryType>
where Ptr: PolarsAsRef<[u8]>,

source§

impl<Ptr> FromTrustedLenIterator<Ptr> for ChunkedArray<ListType>
where Ptr: Borrow<Series>,

source§

fn from_iter_trusted_length<I>(iter: I) -> ChunkedArray<ListType>
where I: IntoIterator<Item = Ptr>,

source§

impl<Ptr> FromTrustedLenIterator<Ptr> for ChunkedArray<StringType>
where Ptr: PolarsAsRef<str>,

source§

impl FromTrustedLenIterator<bool> for ChunkedArray<BooleanType>

source§

fn from_iter_trusted_length<I>(iter: I) -> ChunkedArray<BooleanType>
where I: IntoIterator<Item = bool>, <I as IntoIterator>::IntoIter: TrustedLen,

source§

impl IntoGroupsProxy for ChunkedArray<BinaryOffsetType>

source§

fn group_tuples<'a>( &'a self, multithreaded: bool, sorted: bool ) -> Result<GroupsProxy, PolarsError>

Create the tuples need for a group_by operation. * The first value in the tuple is the first index of the group. * The second value in the tuple is the indexes of the groups including the first value.
source§

impl IntoGroupsProxy for ChunkedArray<BinaryType>

source§

fn group_tuples<'a>( &'a self, multithreaded: bool, sorted: bool ) -> Result<GroupsProxy, PolarsError>

Create the tuples need for a group_by operation. * The first value in the tuple is the first index of the group. * The second value in the tuple is the indexes of the groups including the first value.
source§

impl IntoGroupsProxy for ChunkedArray<BooleanType>

source§

fn group_tuples( &self, multithreaded: bool, sorted: bool ) -> Result<GroupsProxy, PolarsError>

Create the tuples need for a group_by operation. * The first value in the tuple is the first index of the group. * The second value in the tuple is the indexes of the groups including the first value.
source§

impl IntoGroupsProxy for ChunkedArray<FixedSizeListType>

Available on crate feature dtype-array only.
source§

fn group_tuples<'a>( &'a self, _multithreaded: bool, _sorted: bool ) -> Result<GroupsProxy, PolarsError>

Create the tuples need for a group_by operation. * The first value in the tuple is the first index of the group. * The second value in the tuple is the indexes of the groups including the first value.
source§

impl IntoGroupsProxy for ChunkedArray<ListType>

source§

fn group_tuples<'a>( &'a self, multithreaded: bool, sorted: bool ) -> Result<GroupsProxy, PolarsError>

Create the tuples need for a group_by operation. * The first value in the tuple is the first index of the group. * The second value in the tuple is the indexes of the groups including the first value.
source§

impl<T> IntoGroupsProxy for ChunkedArray<ObjectType<T>>
where T: PolarsObject,

Available on crate feature object only.
source§

fn group_tuples( &self, _multithreaded: bool, sorted: bool ) -> Result<GroupsProxy, PolarsError>

Create the tuples need for a group_by operation. * The first value in the tuple is the first index of the group. * The second value in the tuple is the indexes of the groups including the first value.
source§

impl IntoGroupsProxy for ChunkedArray<StringType>

source§

fn group_tuples<'a>( &'a self, multithreaded: bool, sorted: bool ) -> Result<GroupsProxy, PolarsError>

Create the tuples need for a group_by operation. * The first value in the tuple is the first index of the group. * The second value in the tuple is the indexes of the groups including the first value.
source§

impl<T> IntoGroupsProxy for ChunkedArray<T>

source§

fn group_tuples( &self, multithreaded: bool, sorted: bool ) -> Result<GroupsProxy, PolarsError>

Create the tuples need for a group_by operation. * The first value in the tuple is the first index of the group. * The second value in the tuple is the indexes of the groups including the first value.
source§

impl<'a> IntoIterator for &'a ChunkedArray<BinaryOffsetType>

§

type Item = Option<&'a [u8]>

The type of the elements being iterated over.
§

type IntoIter = Box<dyn PolarsIterator<Item = <&'a ChunkedArray<BinaryOffsetType> as IntoIterator>::Item> + 'a>

Which kind of iterator are we turning this into?
source§

fn into_iter( self ) -> <&'a ChunkedArray<BinaryOffsetType> as IntoIterator>::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a> IntoIterator for &'a ChunkedArray<BinaryType>

§

type Item = Option<&'a [u8]>

The type of the elements being iterated over.
§

type IntoIter = Box<dyn PolarsIterator<Item = <&'a ChunkedArray<BinaryType> as IntoIterator>::Item> + 'a>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> <&'a ChunkedArray<BinaryType> as IntoIterator>::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a> IntoIterator for &'a ChunkedArray<BooleanType>

§

type Item = Option<bool>

The type of the elements being iterated over.
§

type IntoIter = Box<dyn PolarsIterator<Item = <&'a ChunkedArray<BooleanType> as IntoIterator>::Item> + 'a>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> <&'a ChunkedArray<BooleanType> as IntoIterator>::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a> IntoIterator for &'a ChunkedArray<FixedSizeListType>

Available on crate feature dtype-array only.
§

type Item = Option<Series>

The type of the elements being iterated over.
§

type IntoIter = Box<dyn PolarsIterator<Item = <&'a ChunkedArray<FixedSizeListType> as IntoIterator>::Item> + 'a>

Which kind of iterator are we turning this into?
source§

fn into_iter( self ) -> <&'a ChunkedArray<FixedSizeListType> as IntoIterator>::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a> IntoIterator for &'a ChunkedArray<ListType>

§

type Item = Option<Series>

The type of the elements being iterated over.
§

type IntoIter = Box<dyn PolarsIterator<Item = <&'a ChunkedArray<ListType> as IntoIterator>::Item> + 'a>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> <&'a ChunkedArray<ListType> as IntoIterator>::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for &'a ChunkedArray<ObjectType<T>>
where T: PolarsObject,

Available on crate feature object only.
§

type Item = Option<&'a T>

The type of the elements being iterated over.
§

type IntoIter = Box<dyn PolarsIterator<Item = <&'a ChunkedArray<ObjectType<T>> as IntoIterator>::Item> + 'a>

Which kind of iterator are we turning this into?
source§

fn into_iter( self ) -> <&'a ChunkedArray<ObjectType<T>> as IntoIterator>::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a> IntoIterator for &'a ChunkedArray<StringType>

§

type Item = Option<&'a str>

The type of the elements being iterated over.
§

type IntoIter = Box<dyn PolarsIterator<Item = <&'a ChunkedArray<StringType> as IntoIterator>::Item> + 'a>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> <&'a ChunkedArray<StringType> as IntoIterator>::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, T> IntoIterator for &'a ChunkedArray<T>

§

type Item = Option<<T as PolarsNumericType>::Native>

The type of the elements being iterated over.
§

type IntoIter = Box<dyn PolarsIterator<Item = <&'a ChunkedArray<T> as IntoIterator>::Item> + 'a>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> <&'a ChunkedArray<T> as IntoIterator>::IntoIter

Creates an iterator from a value. Read more
source§

impl IntoSeries for ChunkedArray<Int128Type>

source§

impl<T> IntoSeries for ChunkedArray<T>
where T: PolarsDataType + 'static, SeriesWrap<ChunkedArray<T>>: SeriesTrait,

source§

impl ListNameSpaceImpl for ChunkedArray<ListType>

source§

fn lst_join( &self, separator: &ChunkedArray<StringType>, ignore_nulls: bool ) -> Result<ChunkedArray<StringType>, PolarsError>

In case the inner dtype DataType::String, the individual items will be joined into a single string separated by separator.
source§

fn join_literal( &self, separator: &str, ignore_nulls: bool ) -> Result<ChunkedArray<StringType>, PolarsError>

source§

fn join_many( &self, separator: &ChunkedArray<StringType>, ignore_nulls: bool ) -> Result<ChunkedArray<StringType>, PolarsError>

source§

fn lst_max(&self) -> Result<Series, PolarsError>

source§

fn lst_min(&self) -> Result<Series, PolarsError>

source§

fn lst_sum(&self) -> Result<Series, PolarsError>

source§

fn lst_mean(&self) -> Series

source§

fn lst_median(&self) -> Series

source§

fn lst_std(&self, ddof: u8) -> Series

source§

fn lst_var(&self, ddof: u8) -> Series

source§

fn same_type(&self, out: ChunkedArray<ListType>) -> ChunkedArray<ListType>

source§

fn lst_sort( &self, options: SortOptions ) -> Result<ChunkedArray<ListType>, PolarsError>

source§

fn lst_reverse(&self) -> ChunkedArray<ListType>

source§

fn lst_n_unique(&self) -> Result<ChunkedArray<UInt32Type>, PolarsError>

source§

fn lst_unique(&self) -> Result<ChunkedArray<ListType>, PolarsError>

source§

fn lst_unique_stable(&self) -> Result<ChunkedArray<ListType>, PolarsError>

source§

fn lst_arg_min(&self) -> ChunkedArray<UInt32Type>

source§

fn lst_arg_max(&self) -> ChunkedArray<UInt32Type>

source§

fn lst_diff( &self, n: i64, null_behavior: NullBehavior ) -> Result<ChunkedArray<ListType>, PolarsError>

Available on crate feature diff only.
source§

fn lst_shift( &self, periods: &Series ) -> Result<ChunkedArray<ListType>, PolarsError>

source§

fn lst_slice(&self, offset: i64, length: usize) -> ChunkedArray<ListType>

source§

fn lst_lengths(&self) -> ChunkedArray<UInt32Type>

source§

fn lst_get(&self, idx: i64, null_on_oob: bool) -> Result<Series, PolarsError>

Get the value by index in the sublists. So index 0 would return the first item of every sublist and index -1 would return the last item of every sublist if an index is out of bounds, it will return a None.
source§

fn lst_concat( &self, other: &[Series] ) -> Result<ChunkedArray<ListType>, PolarsError>

source§

impl<T> MetadataCollectable<T> for ChunkedArray<T>

source§

impl<T, N> Mul<N> for &ChunkedArray<T>

§

type Output = ChunkedArray<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: N) -> <&ChunkedArray<T> as Mul<N>>::Output

Performs the * operation. Read more
source§

impl<T, N> Mul<N> for ChunkedArray<T>

§

type Output = ChunkedArray<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: N) -> <ChunkedArray<T> as Mul<N>>::Output

Performs the * operation. Read more
source§

impl<T> Mul for &ChunkedArray<T>

§

type Output = ChunkedArray<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &ChunkedArray<T>) -> <&ChunkedArray<T> as Mul>::Output

Performs the * operation. Read more
source§

impl<T> Mul for ChunkedArray<T>

§

type Output = ChunkedArray<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: ChunkedArray<T>) -> <ChunkedArray<T> as Mul>::Output

Performs the * operation. Read more
source§

impl<T> NamedFrom<&[T], &[T]> for ChunkedArray<ObjectType<T>>
where T: PolarsObject,

Available on crate feature object only.
source§

fn new(name: &str, v: &[T]) -> ChunkedArray<ObjectType<T>>

Initialize by name and values.
source§

impl NamedFrom<Range<i32>, Int32Type> for ChunkedArray<Int32Type>

source§

fn new(name: &str, range: Range<i32>) -> ChunkedArray<Int32Type>

Initialize by name and values.
source§

impl NamedFrom<Range<i64>, Int64Type> for ChunkedArray<Int64Type>

source§

fn new(name: &str, range: Range<i64>) -> ChunkedArray<Int64Type>

Initialize by name and values.
source§

impl NamedFrom<Range<u32>, UInt32Type> for ChunkedArray<UInt32Type>

source§

fn new(name: &str, range: Range<u32>) -> ChunkedArray<UInt32Type>

Initialize by name and values.
source§

impl NamedFrom<Range<u64>, UInt64Type> for ChunkedArray<UInt64Type>

source§

fn new(name: &str, range: Range<u64>) -> ChunkedArray<UInt64Type>

Initialize by name and values.
source§

impl<T, S> NamedFrom<S, [Option<T>]> for ChunkedArray<ObjectType<T>>
where T: PolarsObject, S: AsRef<[Option<T>]>,

Available on crate feature object only.
source§

fn new(name: &str, v: S) -> ChunkedArray<ObjectType<T>>

Initialize by name and values.
source§

impl<'a, T> NamedFrom<T, [&'a [u8]]> for ChunkedArray<BinaryType>
where T: AsRef<[&'a [u8]]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<BinaryType>

Initialize by name and values.
source§

impl<'a, T> NamedFrom<T, [&'a str]> for ChunkedArray<StringType>
where T: AsRef<[&'a str]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<StringType>

Initialize by name and values.
source§

impl<'a, T> NamedFrom<T, [Cow<'a, [u8]>]> for ChunkedArray<BinaryType>
where T: AsRef<[Cow<'a, [u8]>]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<BinaryType>

Initialize by name and values.
source§

impl<'a, T> NamedFrom<T, [Cow<'a, str>]> for ChunkedArray<StringType>
where T: AsRef<[Cow<'a, str>]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<StringType>

Initialize by name and values.
source§

impl<'a, T> NamedFrom<T, [Option<&'a [u8]>]> for ChunkedArray<BinaryType>
where T: AsRef<[Option<&'a [u8]>]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<BinaryType>

Initialize by name and values.
source§

impl<'a, T> NamedFrom<T, [Option<&'a str>]> for ChunkedArray<StringType>
where T: AsRef<[Option<&'a str>]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<StringType>

Initialize by name and values.
source§

impl<'a, T> NamedFrom<T, [Option<Cow<'a, [u8]>>]> for ChunkedArray<BinaryType>
where T: AsRef<[Option<Cow<'a, [u8]>>]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<BinaryType>

Initialize by name and values.
source§

impl<'a, T> NamedFrom<T, [Option<Cow<'a, str>>]> for ChunkedArray<StringType>
where T: AsRef<[Option<Cow<'a, str>>]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<StringType>

Initialize by name and values.
source§

impl<T> NamedFrom<T, [Option<String>]> for ChunkedArray<StringType>
where T: AsRef<[Option<String>]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<StringType>

Initialize by name and values.
source§

impl<T> NamedFrom<T, [Option<Vec<u8>>]> for ChunkedArray<BinaryType>
where T: AsRef<[Option<Vec<u8>>]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<BinaryType>

Initialize by name and values.
source§

impl<T> NamedFrom<T, [Option<bool>]> for ChunkedArray<BooleanType>
where T: AsRef<[Option<bool>]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<BooleanType>

Initialize by name and values.
source§

impl<T> NamedFrom<T, [Option<f32>]> for ChunkedArray<Float32Type>
where T: AsRef<[Option<f32>]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<Float32Type>

Initialize by name and values.
source§

impl<T> NamedFrom<T, [Option<f64>]> for ChunkedArray<Float64Type>
where T: AsRef<[Option<f64>]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<Float64Type>

Initialize by name and values.
source§

impl<T> NamedFrom<T, [Option<i16>]> for ChunkedArray<Int16Type>
where T: AsRef<[Option<i16>]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<Int16Type>

Initialize by name and values.
source§

impl<T> NamedFrom<T, [Option<i32>]> for ChunkedArray<Int32Type>
where T: AsRef<[Option<i32>]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<Int32Type>

Initialize by name and values.
source§

impl<T> NamedFrom<T, [Option<i64>]> for ChunkedArray<Int64Type>
where T: AsRef<[Option<i64>]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<Int64Type>

Initialize by name and values.
source§

impl<T> NamedFrom<T, [Option<i8>]> for ChunkedArray<Int8Type>
where T: AsRef<[Option<i8>]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<Int8Type>

Initialize by name and values.
source§

impl<T> NamedFrom<T, [Option<u16>]> for ChunkedArray<UInt16Type>
where T: AsRef<[Option<u16>]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<UInt16Type>

Initialize by name and values.
source§

impl<T> NamedFrom<T, [Option<u32>]> for ChunkedArray<UInt32Type>
where T: AsRef<[Option<u32>]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<UInt32Type>

Initialize by name and values.
source§

impl<T> NamedFrom<T, [Option<u64>]> for ChunkedArray<UInt64Type>
where T: AsRef<[Option<u64>]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<UInt64Type>

Initialize by name and values.
source§

impl<T> NamedFrom<T, [Option<u8>]> for ChunkedArray<UInt8Type>
where T: AsRef<[Option<u8>]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<UInt8Type>

Initialize by name and values.
source§

impl<T> NamedFrom<T, [String]> for ChunkedArray<StringType>
where T: AsRef<[String]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<StringType>

Initialize by name and values.
source§

impl<T> NamedFrom<T, [Vec<u8>]> for ChunkedArray<BinaryType>
where T: AsRef<[Vec<u8>]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<BinaryType>

Initialize by name and values.
source§

impl<T> NamedFrom<T, [bool]> for ChunkedArray<BooleanType>
where T: AsRef<[bool]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<BooleanType>

Initialize by name and values.
source§

impl<T> NamedFrom<T, [f32]> for ChunkedArray<Float32Type>
where T: AsRef<[f32]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<Float32Type>

Initialize by name and values.
source§

impl<T> NamedFrom<T, [f64]> for ChunkedArray<Float64Type>
where T: AsRef<[f64]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<Float64Type>

Initialize by name and values.
source§

impl<T> NamedFrom<T, [i16]> for ChunkedArray<Int16Type>
where T: AsRef<[i16]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<Int16Type>

Initialize by name and values.
source§

impl<T> NamedFrom<T, [i32]> for ChunkedArray<Int32Type>
where T: AsRef<[i32]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<Int32Type>

Initialize by name and values.
source§

impl<T> NamedFrom<T, [i64]> for ChunkedArray<Int64Type>
where T: AsRef<[i64]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<Int64Type>

Initialize by name and values.
source§

impl<T> NamedFrom<T, [i8]> for ChunkedArray<Int8Type>
where T: AsRef<[i8]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<Int8Type>

Initialize by name and values.
source§

impl<T> NamedFrom<T, [u16]> for ChunkedArray<UInt16Type>
where T: AsRef<[u16]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<UInt16Type>

Initialize by name and values.
source§

impl<T> NamedFrom<T, [u32]> for ChunkedArray<UInt32Type>
where T: AsRef<[u32]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<UInt32Type>

Initialize by name and values.
source§

impl<T> NamedFrom<T, [u64]> for ChunkedArray<UInt64Type>
where T: AsRef<[u64]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<UInt64Type>

Initialize by name and values.
source§

impl<T> NamedFrom<T, [u8]> for ChunkedArray<UInt8Type>
where T: AsRef<[u8]>,

source§

fn new(name: &str, v: T) -> ChunkedArray<UInt8Type>

Initialize by name and values.
source§

impl<B> NewChunkedArray<BinaryType, B> for ChunkedArray<BinaryType>
where B: AsRef<[u8]>,

source§

fn from_iter_values( name: &str, it: impl Iterator<Item = B> ) -> ChunkedArray<BinaryType>

Create a new ChunkedArray from an iterator.

source§

fn from_slice(name: &str, v: &[B]) -> ChunkedArray<BinaryType>

source§

fn from_slice_options( name: &str, opt_v: &[Option<B>] ) -> ChunkedArray<BinaryType>

source§

fn from_iter_options( name: &str, it: impl Iterator<Item = Option<B>> ) -> ChunkedArray<BinaryType>

Create a new ChunkedArray from an iterator.
source§

impl NewChunkedArray<BooleanType, bool> for ChunkedArray<BooleanType>

source§

fn from_iter_values( name: &str, it: impl Iterator<Item = bool> ) -> ChunkedArray<BooleanType>

Create a new ChunkedArray from an iterator.

source§

fn from_slice(name: &str, v: &[bool]) -> ChunkedArray<BooleanType>

source§

fn from_slice_options( name: &str, opt_v: &[Option<bool>] ) -> ChunkedArray<BooleanType>

source§

fn from_iter_options( name: &str, it: impl Iterator<Item = Option<bool>> ) -> ChunkedArray<BooleanType>

Create a new ChunkedArray from an iterator.
source§

impl<T> NewChunkedArray<ObjectType<T>, T> for ChunkedArray<ObjectType<T>>
where T: PolarsObject,

source§

fn from_iter_values( name: &str, it: impl Iterator<Item = T> ) -> ChunkedArray<ObjectType<T>>

Create a new ChunkedArray from an iterator.

source§

fn from_slice(name: &str, v: &[T]) -> ChunkedArray<ObjectType<T>>

source§

fn from_slice_options( name: &str, opt_v: &[Option<T>] ) -> ChunkedArray<ObjectType<T>>

source§

fn from_iter_options( name: &str, it: impl Iterator<Item = Option<T>> ) -> ChunkedArray<ObjectType<T>>

Create a new ChunkedArray from an iterator.
source§

impl<S> NewChunkedArray<StringType, S> for ChunkedArray<StringType>
where S: AsRef<str>,

source§

fn from_iter_values( name: &str, it: impl Iterator<Item = S> ) -> ChunkedArray<StringType>

Create a new ChunkedArray from an iterator.

source§

fn from_slice(name: &str, v: &[S]) -> ChunkedArray<StringType>

source§

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>

Create a new ChunkedArray from an iterator.
source§

impl<T> NewChunkedArray<T, <T as PolarsNumericType>::Native> for ChunkedArray<T>

source§

fn from_iter_values( name: &str, it: impl Iterator<Item = <T as PolarsNumericType>::Native> ) -> ChunkedArray<T>

Create a new ChunkedArray from an iterator.

source§

fn from_slice( name: &str, v: &[<T as PolarsNumericType>::Native] ) -> ChunkedArray<T>

source§

fn from_slice_options( name: &str, opt_v: &[Option<<T as PolarsNumericType>::Native>] ) -> ChunkedArray<T>

source§

fn from_iter_options( name: &str, it: impl Iterator<Item = Option<<T as PolarsNumericType>::Native>> ) -> ChunkedArray<T>

Create a new ChunkedArray from an iterator.
source§

impl Not for &ChunkedArray<BooleanType>

§

type Output = ChunkedArray<BooleanType>

The resulting type after applying the ! operator.
source§

fn not(self) -> <&ChunkedArray<BooleanType> as Not>::Output

Performs the unary ! operation. Read more
source§

impl Not for ChunkedArray<BooleanType>

§

type Output = ChunkedArray<BooleanType>

The resulting type after applying the ! operator.
source§

fn not(self) -> <ChunkedArray<BooleanType> as Not>::Output

Performs the unary ! operation. Read more
source§

impl<T> NumOpsDispatch for ChunkedArray<T>

source§

impl<S> NumOpsDispatchChecked for ChunkedArray<S>

source§

fn checked_div(&self, rhs: &Series) -> Result<Series, PolarsError>

Checked integer division. Computes self / rhs, returning None if rhs == 0 or the division results in overflow.
source§

fn checked_div_num<T>(&self, rhs: T) -> Result<Series, PolarsError>
where T: ToPrimitive,

source§

impl QuantileAggSeries for ChunkedArray<Float32Type>

source§

fn quantile_reduce( &self, quantile: f64, interpol: QuantileInterpolOptions ) -> Result<Scalar, PolarsError>

Get the quantile of the ChunkedArray as a new Series of length 1.
source§

fn median_reduce(&self) -> Scalar

Get the median of the ChunkedArray as a new Series of length 1.
source§

impl QuantileAggSeries for ChunkedArray<Float64Type>

source§

fn quantile_reduce( &self, quantile: f64, interpol: QuantileInterpolOptions ) -> Result<Scalar, PolarsError>

Get the quantile of the ChunkedArray as a new Series of length 1.
source§

fn median_reduce(&self) -> Scalar

Get the median of the ChunkedArray as a new Series of length 1.
source§

impl<T> QuantileAggSeries for ChunkedArray<T>
where T: PolarsIntegerType, <T as PolarsNumericType>::Native: Ord, <<T as PolarsNumericType>::Native as Simd>::Simd: Add<Output = <<T as PolarsNumericType>::Native as Simd>::Simd> + Sum<<T as PolarsNumericType>::Native>,

source§

fn quantile_reduce( &self, quantile: f64, interpol: QuantileInterpolOptions ) -> Result<Scalar, PolarsError>

Get the quantile of the ChunkedArray as a new Series of length 1.
source§

fn median_reduce(&self) -> Scalar

Get the median of the ChunkedArray as a new Series of length 1.
source§

impl Reinterpret for ChunkedArray<Float32Type>

Available on crate feature reinterpret only.
source§

impl Reinterpret for ChunkedArray<Float64Type>

Available on crate feature reinterpret only.
source§

impl Reinterpret for ChunkedArray<Int16Type>

Available on crate features reinterpret and dtype-i16 and dtype-u16 only.
source§

impl Reinterpret for ChunkedArray<Int32Type>

Available on crate feature reinterpret only.
source§

impl Reinterpret for ChunkedArray<Int64Type>

Available on crate feature reinterpret only.
source§

impl Reinterpret for ChunkedArray<Int8Type>

Available on crate features reinterpret and dtype-i8 and dtype-u8 only.
source§

impl Reinterpret for ChunkedArray<ListType>

Available on crate feature reinterpret only.
source§

impl Reinterpret for ChunkedArray<UInt16Type>

Available on crate features reinterpret and dtype-u16 and dtype-i16 only.
source§

impl Reinterpret for ChunkedArray<UInt32Type>

Available on crate feature reinterpret only.
source§

impl Reinterpret for ChunkedArray<UInt64Type>

Available on crate feature reinterpret only.
source§

impl Reinterpret for ChunkedArray<UInt8Type>

Available on crate features reinterpret and dtype-u8 and dtype-i8 only.
source§

impl<T, N> Rem<N> for &ChunkedArray<T>

§

type Output = ChunkedArray<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: N) -> <&ChunkedArray<T> as Rem<N>>::Output

Performs the % operation. Read more
source§

impl<T, N> Rem<N> for ChunkedArray<T>

§

type Output = ChunkedArray<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: N) -> <ChunkedArray<T> as Rem<N>>::Output

Performs the % operation. Read more
source§

impl<T> Rem for &ChunkedArray<T>

§

type Output = ChunkedArray<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &ChunkedArray<T>) -> <&ChunkedArray<T> as Rem>::Output

Performs the % operation. Read more
source§

impl<T> Rem for ChunkedArray<T>

§

type Output = ChunkedArray<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: ChunkedArray<T>) -> <ChunkedArray<T> as Rem>::Output

Performs the % operation. Read more
source§

impl StringMethods for ChunkedArray<StringType>

source§

fn as_time( &self, fmt: Option<&str>, use_cache: bool ) -> Result<Logical<TimeType, Int64Type>, PolarsError>

Available on crate feature dtype-time only.
Parsing string values and return a TimeChunked
source§

fn as_date_not_exact( &self, fmt: Option<&str> ) -> Result<Logical<DateType, Int32Type>, PolarsError>

Available on crate feature dtype-date only.
Parsing string values and return a DateChunked Different from as_date this function allows matches that not contain the whole string e.g. “foo-2021-01-01-bar” could match “2021-01-01”
source§

fn as_datetime_not_exact( &self, fmt: Option<&str>, tu: TimeUnit, tz_aware: bool, tz: Option<&String>, _ambiguous: &ChunkedArray<StringType> ) -> Result<Logical<DatetimeType, Int64Type>, PolarsError>

Available on crate feature dtype-datetime only.
Parsing string values and return a DatetimeChunked Different from as_datetime this function allows matches that not contain the whole string e.g. “foo-2021-01-01-bar” could match “2021-01-01”
source§

fn as_date( &self, fmt: Option<&str>, use_cache: bool ) -> Result<Logical<DateType, Int32Type>, PolarsError>

Available on crate feature dtype-date only.
Parsing string values and return a DateChunked
source§

fn as_datetime( &self, fmt: Option<&str>, tu: TimeUnit, use_cache: bool, tz_aware: bool, tz: Option<&String>, ambiguous: &ChunkedArray<StringType> ) -> Result<Logical<DatetimeType, Int64Type>, PolarsError>

Available on crate feature dtype-datetime only.
Parsing string values and return a DatetimeChunked.
source§

impl StringNameSpaceImpl for ChunkedArray<StringType>

source§

fn hex_decode(&self) -> Result<ChunkedArray<StringType>, PolarsError>

Available on non-crate feature binary_encoding only.
source§

fn hex_encode(&self) -> ChunkedArray<StringType>

Available on crate feature string_encoding only.
source§

fn base64_decode(&self) -> Result<ChunkedArray<StringType>, PolarsError>

Available on non-crate feature binary_encoding only.
source§

fn base64_encode(&self) -> ChunkedArray<StringType>

Available on crate feature string_encoding only.
source§

fn to_integer( &self, base: &ChunkedArray<UInt32Type>, strict: bool ) -> Result<ChunkedArray<Int64Type>, PolarsError>

Available on crate feature string_to_integer only.
source§

fn contains_chunked( &self, pat: &ChunkedArray<StringType>, literal: bool, strict: bool ) -> Result<ChunkedArray<BooleanType>, PolarsError>

source§

fn find_chunked( &self, pat: &ChunkedArray<StringType>, literal: bool, strict: bool ) -> Result<ChunkedArray<UInt32Type>, PolarsError>

source§

fn str_len_chars(&self) -> ChunkedArray<UInt32Type>

Get the length of the string values as number of chars.
source§

fn str_len_bytes(&self) -> ChunkedArray<UInt32Type>

Get the length of the string values as number of bytes.
source§

fn contains( &self, pat: &str, strict: bool ) -> Result<ChunkedArray<BooleanType>, PolarsError>

Check if strings contain a regex pattern.
source§

fn contains_literal( &self, lit: &str ) -> Result<ChunkedArray<BooleanType>, PolarsError>

Check if strings contain a given literal
source§

fn find_literal( &self, lit: &str ) -> Result<ChunkedArray<UInt32Type>, PolarsError>

Return the index position of a literal substring in the target string.
source§

fn find( &self, pat: &str, strict: bool ) -> Result<ChunkedArray<UInt32Type>, PolarsError>

Return the index position of a regular expression substring in the target string.
source§

fn replace<'a>( &'a self, pat: &str, val: &str ) -> Result<ChunkedArray<StringType>, PolarsError>

Replace the leftmost regex-matched (sub)string with another string
source§

fn replace_literal<'a>( &'a self, pat: &str, val: &str, n: usize ) -> Result<ChunkedArray<StringType>, PolarsError>

Replace the leftmost literal (sub)string with another string
source§

fn replace_all( &self, pat: &str, val: &str ) -> Result<ChunkedArray<StringType>, PolarsError>

Replace all regex-matched (sub)strings with another string
source§

fn replace_literal_all<'a>( &'a self, pat: &str, val: &str ) -> Result<ChunkedArray<StringType>, PolarsError>

Replace all matching literal (sub)strings with another string
source§

fn extract( &self, pat: &ChunkedArray<StringType>, group_index: usize ) -> Result<ChunkedArray<StringType>, PolarsError>

Extract the nth capture group from pattern.
source§

fn extract_all(&self, pat: &str) -> Result<ChunkedArray<ListType>, PolarsError>

Extract each successive non-overlapping regex match in an individual string as an array.
source§

fn strip_chars( &self, pat: &Series ) -> Result<ChunkedArray<StringType>, PolarsError>

source§

fn strip_chars_start( &self, pat: &Series ) -> Result<ChunkedArray<StringType>, PolarsError>

source§

fn strip_chars_end( &self, pat: &Series ) -> Result<ChunkedArray<StringType>, PolarsError>

source§

fn strip_prefix( &self, prefix: &ChunkedArray<StringType> ) -> ChunkedArray<StringType>

source§

fn strip_suffix( &self, suffix: &ChunkedArray<StringType> ) -> ChunkedArray<StringType>

source§

fn split_exact( &self, by: &ChunkedArray<StringType>, n: usize ) -> Result<StructChunked, PolarsError>

Available on crate feature dtype-struct only.
source§

fn split_exact_inclusive( &self, by: &ChunkedArray<StringType>, n: usize ) -> Result<StructChunked, PolarsError>

Available on crate feature dtype-struct only.
source§

fn splitn( &self, by: &ChunkedArray<StringType>, n: usize ) -> Result<StructChunked, PolarsError>

Available on crate feature dtype-struct only.
source§

fn split(&self, by: &ChunkedArray<StringType>) -> ChunkedArray<ListType>

source§

fn split_inclusive( &self, by: &ChunkedArray<StringType> ) -> ChunkedArray<ListType>

source§

fn extract_all_many( &self, pat: &ChunkedArray<StringType> ) -> Result<ChunkedArray<ListType>, PolarsError>

Extract each successive non-overlapping regex match in an individual string as an array.
source§

fn extract_groups( &self, pat: &str, dtype: &DataType ) -> Result<Series, PolarsError>

Available on crate feature extract_groups only.
Extract all capture groups from pattern and return as a struct.
source§

fn count_matches( &self, pat: &str, literal: bool ) -> Result<ChunkedArray<UInt32Type>, PolarsError>

Count all successive non-overlapping regex matches.
source§

fn count_matches_many( &self, pat: &ChunkedArray<StringType>, literal: bool ) -> Result<ChunkedArray<UInt32Type>, PolarsError>

Count all successive non-overlapping regex matches.
source§

fn to_lowercase(&self) -> ChunkedArray<StringType>

Modify the strings to their lowercase equivalent.
source§

fn to_uppercase(&self) -> ChunkedArray<StringType>

Modify the strings to their uppercase equivalent.
source§

fn to_titlecase(&self) -> ChunkedArray<StringType>

Available on crate feature nightly only.
Modify the strings to their titlecase equivalent.
source§

fn concat(&self, other: &ChunkedArray<StringType>) -> ChunkedArray<StringType>

Concat with the values from a second StringChunked.
source§

fn str_reverse(&self) -> ChunkedArray<StringType>

Available on crate feature string_reverse only.
Reverses the string values
source§

fn str_slice( &self, offset: &Series, length: &Series ) -> Result<ChunkedArray<StringType>, PolarsError>

Slice the string values. Read more
source§

fn str_head(&self, n: &Series) -> Result<ChunkedArray<StringType>, PolarsError>

Slice the first n values of the string. Read more
source§

fn str_tail(&self, n: &Series) -> Result<ChunkedArray<StringType>, PolarsError>

Slice the last n values of the string. Read more
source§

impl<T, N> Sub<N> for &ChunkedArray<T>

§

type Output = ChunkedArray<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: N) -> <&ChunkedArray<T> as Sub<N>>::Output

Performs the - operation. Read more
source§

impl<T, N> Sub<N> for ChunkedArray<T>

§

type Output = ChunkedArray<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: N) -> <ChunkedArray<T> as Sub<N>>::Output

Performs the - operation. Read more
source§

impl<T> Sub for &ChunkedArray<T>

§

type Output = ChunkedArray<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &ChunkedArray<T>) -> <&ChunkedArray<T> as Sub>::Output

Performs the - operation. Read more
source§

impl<T> Sub for ChunkedArray<T>

§

type Output = ChunkedArray<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: ChunkedArray<T>) -> <ChunkedArray<T> as Sub>::Output

Performs the - operation. Read more
source§

impl<T> TakeChunked for ChunkedArray<T>

source§

unsafe fn take_chunked_unchecked( &self, by: &[ChunkId], sorted: IsSorted ) -> ChunkedArray<T>

Safety Read more
source§

unsafe fn take_opt_chunked_unchecked(&self, by: &[ChunkId]) -> ChunkedArray<T>

Safety Read more
source§

impl ValueSize for ChunkedArray<BinaryOffsetType>

source§

fn get_values_size(&self) -> usize

Get the values size that is still “visible” to the underlying array. E.g. take the offsets into account.
source§

impl ValueSize for ChunkedArray<FixedSizeListType>

Available on crate feature dtype-array only.
source§

fn get_values_size(&self) -> usize

Get the values size that is still “visible” to the underlying array. E.g. take the offsets into account.
source§

impl ValueSize for ChunkedArray<ListType>

source§

fn get_values_size(&self) -> usize

Get the values size that is still “visible” to the underlying array. E.g. take the offsets into account.
source§

impl ValueSize for ChunkedArray<StringType>

source§

fn get_values_size(&self) -> usize

Get the values size that is still “visible” to the underlying array. E.g. take the offsets into account.
source§

impl VarAggSeries for ChunkedArray<Float32Type>

source§

fn var_reduce(&self, ddof: u8) -> Scalar

Get the variance of the ChunkedArray as a new Series of length 1.
source§

fn std_reduce(&self, ddof: u8) -> Scalar

Get the standard deviation of the ChunkedArray as a new Series of length 1.
source§

impl VarAggSeries for ChunkedArray<Float64Type>

source§

fn var_reduce(&self, ddof: u8) -> Scalar

Get the variance of the ChunkedArray as a new Series of length 1.
source§

fn std_reduce(&self, ddof: u8) -> Scalar

Get the standard deviation of the ChunkedArray as a new Series of length 1.
source§

impl<T> VarAggSeries for ChunkedArray<T>

source§

fn var_reduce(&self, ddof: u8) -> Scalar

Get the variance of the ChunkedArray as a new Series of length 1.
source§

fn std_reduce(&self, ddof: u8) -> Scalar

Get the standard deviation of the ChunkedArray as a new Series of length 1.
source§

impl VecHash for ChunkedArray<BinaryOffsetType>

source§

fn vec_hash( &self, random_state: RandomState, buf: &mut Vec<u64> ) -> Result<(), PolarsError>

Compute the hash for all values in the array. Read more
source§

fn vec_hash_combine( &self, random_state: RandomState, hashes: &mut [u64] ) -> Result<(), PolarsError>

source§

impl VecHash for ChunkedArray<BinaryType>

source§

fn vec_hash( &self, random_state: RandomState, buf: &mut Vec<u64> ) -> Result<(), PolarsError>

Compute the hash for all values in the array. Read more
source§

fn vec_hash_combine( &self, random_state: RandomState, hashes: &mut [u64] ) -> Result<(), PolarsError>

source§

impl VecHash for ChunkedArray<BooleanType>

source§

fn vec_hash( &self, random_state: RandomState, buf: &mut Vec<u64> ) -> Result<(), PolarsError>

Compute the hash for all values in the array. Read more
source§

fn vec_hash_combine( &self, random_state: RandomState, hashes: &mut [u64] ) -> Result<(), PolarsError>

source§

impl VecHash for ChunkedArray<Float32Type>

source§

fn vec_hash( &self, random_state: RandomState, buf: &mut Vec<u64> ) -> Result<(), PolarsError>

Compute the hash for all values in the array. Read more
source§

fn vec_hash_combine( &self, random_state: RandomState, hashes: &mut [u64] ) -> Result<(), PolarsError>

source§

impl VecHash for ChunkedArray<Float64Type>

source§

fn vec_hash( &self, random_state: RandomState, buf: &mut Vec<u64> ) -> Result<(), PolarsError>

Compute the hash for all values in the array. Read more
source§

fn vec_hash_combine( &self, random_state: RandomState, hashes: &mut [u64] ) -> Result<(), PolarsError>

source§

impl VecHash for ChunkedArray<Int128Type>

source§

fn vec_hash( &self, random_state: RandomState, buf: &mut Vec<u64> ) -> Result<(), PolarsError>

Compute the hash for all values in the array. Read more
source§

fn vec_hash_combine( &self, random_state: RandomState, hashes: &mut [u64] ) -> Result<(), PolarsError>

source§

impl VecHash for ChunkedArray<Int16Type>

source§

fn vec_hash( &self, random_state: RandomState, buf: &mut Vec<u64> ) -> Result<(), PolarsError>

Compute the hash for all values in the array. Read more
source§

fn vec_hash_combine( &self, random_state: RandomState, hashes: &mut [u64] ) -> Result<(), PolarsError>

source§

impl VecHash for ChunkedArray<Int32Type>

source§

fn vec_hash( &self, random_state: RandomState, buf: &mut Vec<u64> ) -> Result<(), PolarsError>

Compute the hash for all values in the array. Read more
source§

fn vec_hash_combine( &self, random_state: RandomState, hashes: &mut [u64] ) -> Result<(), PolarsError>

source§

impl VecHash for ChunkedArray<Int64Type>

source§

fn vec_hash( &self, random_state: RandomState, buf: &mut Vec<u64> ) -> Result<(), PolarsError>

Compute the hash for all values in the array. Read more
source§

fn vec_hash_combine( &self, random_state: RandomState, hashes: &mut [u64] ) -> Result<(), PolarsError>

source§

impl VecHash for ChunkedArray<Int8Type>

source§

fn vec_hash( &self, random_state: RandomState, buf: &mut Vec<u64> ) -> Result<(), PolarsError>

Compute the hash for all values in the array. Read more
source§

fn vec_hash_combine( &self, random_state: RandomState, hashes: &mut [u64] ) -> Result<(), PolarsError>

source§

impl<T> VecHash for ChunkedArray<ObjectType<T>>
where T: PolarsObject,

Available on crate feature object only.
source§

fn vec_hash( &self, random_state: RandomState, buf: &mut Vec<u64> ) -> Result<(), PolarsError>

Compute the hash for all values in the array. Read more
source§

fn vec_hash_combine( &self, random_state: RandomState, hashes: &mut [u64] ) -> Result<(), PolarsError>

source§

impl VecHash for ChunkedArray<StringType>

source§

fn vec_hash( &self, random_state: RandomState, buf: &mut Vec<u64> ) -> Result<(), PolarsError>

Compute the hash for all values in the array. Read more
source§

fn vec_hash_combine( &self, random_state: RandomState, hashes: &mut [u64] ) -> Result<(), PolarsError>

source§

impl VecHash for ChunkedArray<UInt16Type>

source§

fn vec_hash( &self, random_state: RandomState, buf: &mut Vec<u64> ) -> Result<(), PolarsError>

Compute the hash for all values in the array. Read more
source§

fn vec_hash_combine( &self, random_state: RandomState, hashes: &mut [u64] ) -> Result<(), PolarsError>

source§

impl VecHash for ChunkedArray<UInt32Type>

source§

fn vec_hash( &self, random_state: RandomState, buf: &mut Vec<u64> ) -> Result<(), PolarsError>

Compute the hash for all values in the array. Read more
source§

fn vec_hash_combine( &self, random_state: RandomState, hashes: &mut [u64] ) -> Result<(), PolarsError>

source§

impl VecHash for ChunkedArray<UInt64Type>

source§

fn vec_hash( &self, random_state: RandomState, buf: &mut Vec<u64> ) -> Result<(), PolarsError>

Compute the hash for all values in the array. Read more
source§

fn vec_hash_combine( &self, random_state: RandomState, hashes: &mut [u64] ) -> Result<(), PolarsError>

source§

impl VecHash for ChunkedArray<UInt8Type>

source§

fn vec_hash( &self, random_state: RandomState, buf: &mut Vec<u64> ) -> Result<(), PolarsError>

Compute the hash for all values in the array. Read more
source§

fn vec_hash_combine( &self, random_state: RandomState, hashes: &mut [u64] ) -> Result<(), PolarsError>

Auto Trait Implementations§

§

impl<T> Freeze for ChunkedArray<T>

§

impl<T> !RefUnwindSafe for ChunkedArray<T>

§

impl<T> Send for ChunkedArray<T>

§

impl<T> Sync for ChunkedArray<T>

§

impl<T> Unpin for ChunkedArray<T>

§

impl<T> !UnwindSafe for ChunkedArray<T>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for T
where T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<A, T, E> FromFallibleIterator<A, E> for T
where T: FromIterator<A>, E: Error,

source§

fn from_fallible_iter<F>(iter: F) -> Result<T, E>
where F: FallibleIterator<E, Item = A>,

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T, Rhs, Output> NumOps<Rhs, Output> for T
where T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,