polars::prelude

Struct 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) -> Float32Chunked {
    ca.apply_values(|v| v.cos())
}

§Conversion between Series and ChunkedArrays

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 ChunkedArray<BinaryType>

Source

pub fn max_binary(&self) -> Option<&[u8]>

Source

pub fn min_binary(&self) -> Option<&[u8]>

Source§

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

Source

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

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_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_into_string_amortized<'a, F>( &'a self, f: F, ) -> ChunkedArray<StringType>
where F: FnMut(<T as PolarsDataType>::Physical<'a>, &mut String),

Source

pub fn try_apply_into_string_amortized<'a, F, E>( &'a self, f: F, ) -> Result<ChunkedArray<StringType>, E>
where F: FnMut(<T as PolarsDataType>::Physical<'a>, &mut String) -> Result<(), 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§

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<StringType>

Source

pub unsafe fn apply_views<F>(&self, update_view: F) -> ChunkedArray<StringType>
where F: FnMut(View, &str) -> View + Copy,

§Safety

Update the views. All invariants of the views apply.

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 ChunkedArray<BooleanType>

Source

pub fn num_trues(&self) -> usize

Source

pub fn num_falses(&self) -> usize

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 rechunk_validity(&self) -> Option<Bitmap>

Source

pub fn split_at(&self, offset: i64) -> (ChunkedArray<T>, ChunkedArray<T>)

Split 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 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>) -> Result<(), PolarsError>

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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, ) -> 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

pub fn get_leaf_array(&self) -> Series

Recurse nested types until we are at the leaf array.

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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, ) -> 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 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

pub fn rechunk_and_trim_to_normalized_offsets(&self) -> ChunkedArray<ListType>

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§

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: PlSmallStr, 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: PlSmallStr, length: usize) -> ChunkedArray<T>

Create ChunkedArray with samples from a Standard Normal distribution.

Source

pub fn rand_uniform( name: PlSmallStr, 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: PlSmallStr, length: usize, p: f64, ) -> Result<ChunkedArray<BooleanType>, PolarsError>

Create ChunkedArray with samples from a Bernoulli distribution.

Source§

impl ChunkedArray<StructType>

Source

pub fn from_columns( name: PlSmallStr, length: usize, fields: &[Column], ) -> Result<ChunkedArray<StructType>, PolarsError>

Source

pub fn from_series<'a, I>( name: PlSmallStr, length: usize, fields: I, ) -> Result<ChunkedArray<StructType>, PolarsError>
where I: ExactSizeIterator<Item = &'a Series> + Clone,

Source

pub fn struct_fields(&self) -> &[Field]

Source

pub fn fields_as_series(&self) -> Vec<Series>

Source

pub fn cast_with_options( &self, dtype: &DataType, cast_options: CastOptions, ) -> Result<Series, PolarsError>

Source

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

Source

pub fn _apply_fields<F>( &self, func: F, ) -> Result<ChunkedArray<StructType>, PolarsError>
where F: FnMut(&Series) -> Series,

Source

pub fn try_apply_fields<F>( &self, func: F, ) -> Result<ChunkedArray<StructType>, PolarsError>

Source

pub fn get_row_encoded_array( &self, options: SortOptions, ) -> Result<BinaryArray<i64>, PolarsError>

Source

pub fn get_row_encoded( &self, options: SortOptions, ) -> Result<ChunkedArray<BinaryOffsetType>, PolarsError>

Source

pub fn zip_outer_validity(&mut self, other: &ChunkedArray<StructType>)

Combine the validities of two structs.

Source

pub fn unnest(self) -> DataFrame

Source

pub fn field_by_name(&self, name: &str) -> Result<Series, PolarsError>

Get access to one of this StructChunked’s fields

Source

pub fn with_outer_validity( self, validity: Option<Bitmap>, ) -> ChunkedArray<StructType>

Source

pub fn with_outer_validity_chunked( self, validity: ChunkedArray<BooleanType>, ) -> ChunkedArray<StructType>

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>

Source

pub fn metadata_dyn(&self) -> Option<RwLockReadGuard<'_, dyn MetadataTrait>>

Attempt to get a reference to the trait object containing the ChunkedArray’s Metadata

This fails if there is a need to block.

Source

pub fn boxed_metadata_dyn<'a>(&'a self) -> Box<dyn MetadataTrait + 'a>

Attempt to get a reference to the trait object containing the ChunkedArray’s Metadata

This fails if there is a need to block.

Source§

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

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.

§Safety

The length and null_count must be correct.

Source

pub fn metadata(&self) -> MetadataReadGuard<'_, T>

Get a guard to read the ChunkedArray’s Metadata

Source

pub fn interior_mut_metadata(&self) -> RwLockWriteGuard<'_, Metadata<T>>

Get a guard to read/write the ChunkedArray’s Metadata

Source

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

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

Source

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

Get a Arc that contains the ChunkedArray’s Metadata

Source

pub fn metadata_mut(&mut self) -> &mut Arc<IMMetadata<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_nulls(&self) -> bool

Return if any the chunks in this ChunkedArray have nulls.

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) -> &PlSmallStr

Name of the ChunkedArray.

Source

pub fn ref_field(&self) -> &Field

Get a reference to the field.

Source

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

Rename this ChunkedArray.

Source

pub fn with_name(self, name: PlSmallStr) -> 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 first(&self) -> Option<<T as PolarsDataType>::Physical<'_>>

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 unsafe fn group_tuples_perfect( &self, num_groups: usize, multithreaded: bool, group_capacity: usize, ) -> GroupsProxy

Use the indexes as perfect groups.

§Safety

This ChunkedArray must contain each value in [0..num_groups) at least once, and nothing outside this range.

Source§

impl<T> ChunkedArray<T>

Source

pub fn new_vec( name: PlSmallStr, 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>

Source§

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>

Source§

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>

Source§

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>

Source§

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>

Source§

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>

Source§

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>

Source§

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>

Source§

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>

Source§

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>

Source§

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>

Source§

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>

Source§

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 AggList for ChunkedArray<StructType>

Available on crate feature dtype-struct only.
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>

Source§

type Scalar = <T as PolarsNumericType>::Native

Source§

type Out = ChunkedArray<T>

Source§

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>

Source§

type Scalar = <T as PolarsNumericType>::Native

Source§

type Out = ChunkedArray<T>

Source§

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<T> AsMut<ChunkedArray<T>> for dyn SeriesTrait + '_
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<T> AsRef<ChunkedArray<T>> for dyn SeriesTrait + '_
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§

fn size_bytes(&self) -> ChunkedArray<UInt32Type>

Get the size of the binary values in bytes.
Source§

impl BitAnd for &ChunkedArray<BooleanType>

Source§

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>

Source§

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>

Source§

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>

Source§

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>

Source§

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>

Source§

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>

Source§

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>

Source§

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>

Source§

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 _sum_as_f64(&self) -> f64

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 ChunkAnyValue for ChunkedArray<StructType>

Available on crate feature dtype-struct only.
Source§

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

Gets AnyValue from LogicalType

Source§

unsafe fn get_any_value_unchecked(&self, i: 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§

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>

Source§

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.
Source§

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>

Source§

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>

Source§

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.

Source§

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>

Source§

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<T> ChunkApproxNUnique for ChunkedArray<T>
where T: PolarsDataType, <T as PolarsDataType>::Physical<'a>: for<'a> TotalHash + for<'a> TotalEq + for<'a> Copy + for<'a> ToTotalOrd, <Option<<T as PolarsDataType>::Physical<'a>> as ToTotalOrd>::TotalOrdItem: for<'a> Hash + for<'a> Eq,

Source§

impl ChunkCast for ChunkedArray<BinaryOffsetType>

Source§

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

Source§

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

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

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

Source§

impl ChunkCast for ChunkedArray<BinaryType>

Source§

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

Source§

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

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

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

Source§

impl ChunkCast for ChunkedArray<BooleanType>

Source§

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

Source§

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

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

fn cast(&self, dtype: &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, dtype: &DataType, options: CastOptions, ) -> Result<Series, PolarsError>

Source§

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

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

fn cast(&self, dtype: &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, dtype: &DataType, options: CastOptions, ) -> Result<Series, PolarsError>

Source§

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

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

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

Source§

impl ChunkCast for ChunkedArray<StringType>

Source§

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

Source§

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

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

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

Source§

impl<T> ChunkCast for ChunkedArray<T>

Source§

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

Source§

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

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

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

Source§

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

Source§

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§

impl ChunkCompareEq<&ChunkedArray<BinaryType>> for ChunkedArray<BinaryType>

Source§

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§

impl ChunkCompareEq<&ChunkedArray<BooleanType>> for ChunkedArray<BooleanType>

Source§

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§

impl ChunkCompareEq<&ChunkedArray<FixedSizeListType>> for ChunkedArray<FixedSizeListType>

Available on crate feature dtype-array only.
Source§

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 ChunkCompareEq<&ChunkedArray<FixedSizeListType>>>::Item

Check for inequality where None == None.
Source§

impl ChunkCompareEq<&ChunkedArray<ListType>> for ChunkedArray<ListType>

Source§

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§

impl ChunkCompareEq<&ChunkedArray<StringType>> for CategoricalChunked

Source§

impl ChunkCompareEq<&ChunkedArray<StringType>> for ChunkedArray<StringType>

Source§

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§

impl ChunkCompareEq<&ChunkedArray<StructType>> for ChunkedArray<StructType>

Available on crate feature dtype-struct only.
Source§

type Item = ChunkedArray<BooleanType>

Source§

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

Check for equality.
Source§

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

Check for equality where None == None.
Source§

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

Check for inequality.
Source§

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

Check for inequality where None == None.
Source§

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

Source§

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§

impl ChunkCompareEq<&str> for ChunkedArray<StringType>

Source§

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§

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

Source§

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§

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

Source§

type Item = ChunkedArray<BooleanType>

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 ChunkCompareIneq<&ChunkedArray<BinaryType>> for ChunkedArray<BinaryType>

Source§

type Item = ChunkedArray<BooleanType>

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 ChunkCompareIneq<&ChunkedArray<BooleanType>> for ChunkedArray<BooleanType>

Source§

type Item = ChunkedArray<BooleanType>

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 ChunkCompareIneq<&ChunkedArray<StringType>> for CategoricalChunked

Source§

impl ChunkCompareIneq<&ChunkedArray<StringType>> for ChunkedArray<StringType>

Source§

type Item = ChunkedArray<BooleanType>

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> ChunkCompareIneq<&ChunkedArray<T>> for ChunkedArray<T>
where <T as PolarsDataType>::Array: TotalOrdKernel<Scalar = <T as PolarsNumericType>::Native> + TotalEqKernel<Scalar = <T as PolarsNumericType>::Native>, T: PolarsNumericType,

Source§

type Item = ChunkedArray<BooleanType>

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 ChunkCompareIneq<&str> for ChunkedArray<StringType>

Source§

type Item = ChunkedArray<BooleanType>

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> ChunkCompareIneq<Rhs> for ChunkedArray<T>
where T: PolarsNumericType, Rhs: ToPrimitive, <T as PolarsDataType>::Array: TotalOrdKernel<Scalar = <T as PolarsNumericType>::Native> + TotalEqKernel<Scalar = <T as PolarsNumericType>::Native>,

Source§

type Item = ChunkedArray<BooleanType>

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 ChunkExpandAtIndex<StructType> for ChunkedArray<StructType>

Available on crate feature dtype-struct only.
Source§

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

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<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<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>
where T: PolarsDataType<HasViews = FalseT, IsObject = FalseT>,

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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, value: &Series, length: usize, ) -> ChunkedArray<FixedSizeListType>

Create a ChunkedArray with a single value.
Source§

impl ChunkFull<&Series> for ChunkedArray<ListType>

Source§

fn full( name: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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 ChunkFullNull for ChunkedArray<StructType>

Available on crate feature dtype-struct only.
Source§

impl<T> ChunkFullNull for 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, _method: QuantileMethod, ) -> 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, _method: QuantileMethod, ) -> 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, _method: QuantileMethod, ) -> 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, _method: QuantileMethod, ) -> 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, _method: QuantileMethod, ) -> 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, method: QuantileMethod, ) -> 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, method: QuantileMethod, ) -> 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, method: QuantileMethod, ) -> 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 ChunkShift<StructType> for ChunkedArray<StructType>

Available on crate feature dtype-struct only.
Source§

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

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: &[Column], 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: &[Column], 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: &[Column], 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: &[Column], 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 ChunkSort<StructType> for ChunkedArray<StructType>

Available on crate feature dtype-struct only.
Source§

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

Source§

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

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: &[Column], _options: &SortMultipleOptions, ) -> Result<ChunkedArray<UInt32Type>, PolarsError>

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

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

Source§

fn arg_sort_multiple( &self, by: &[Column], 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<FixedSizeListType>

Available on crate feature dtype-array only.
Source§

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

Gather values from ChunkedArray by index. Read more
Source§

impl ChunkTakeUnchecked<ChunkedArray<UInt32Type>> for ChunkedArray<ListType>

Source§

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

Gather values from ChunkedArray by index. Read more
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 ChunkTakeUnchecked<ChunkedArray<UInt32Type>> for ChunkedArray<StructType>

Available on crate feature dtype-struct only.
Source§

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

Gather values from ChunkedArray by index. Read more
Source§

impl<T> ChunkTakeUnchecked<ChunkedArray<UInt32Type>> for ChunkedArray<T>
where T: PolarsDataType<HasViews = FalseT, IsStruct = FalseT, IsNested = 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<FixedSizeListType>
where I: AsRef<[u32]> + ?Sized,

Available on crate feature dtype-array only.
Source§

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

Gather values from ChunkedArray by index. Read more
Source§

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

Source§

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

Gather values from ChunkedArray by index. Read more
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<I> ChunkTakeUnchecked<I> for ChunkedArray<StructType>
where I: AsRef<[u32]> + ?Sized,

Available on crate feature dtype-struct only.
Source§

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

Gather values from ChunkedArray by index. Read more
Source§

impl<T, I> ChunkTakeUnchecked<I> for ChunkedArray<T>
where T: PolarsDataType<HasViews = FalseT, IsStruct = FalseT, IsNested = 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 ChunkZip<StructType> for ChunkedArray<StructType>

Available on crate feature dtype-struct only.
Source§

fn zip_with( &self, mask: &ChunkedArray<BooleanType>, other: &ChunkedArray<StructType>, ) -> Result<ChunkedArray<StructType>, 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<T> ChunkZip<T> for ChunkedArray<T>
where <T as PolarsDataType>::Array: for<'a> IfThenElseKernel<Scalar<'a> = <T as PolarsDataType>::Physical<'a>>, T: PolarsDataType<IsStruct = FalseT>, 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>>,

Invariant for implementations: if the scatter() fails, typically because of bad indexes, then self should remain unmodified.
Source§

impl<T> ChunkedSet<<T as PolarsNumericType>::Native> for &mut 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>>,

Invariant for implementations: if the scatter() fails, typically because of bad indexes, then self should remain unmodified.
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>>,

Invariant for implementations: if the scatter() fails, typically because of bad indexes, then self should remain unmodified.
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 split_at(&self, offset: i64) -> (ChunkedArray<T>, 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>

Source§

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>

Source§

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>

Source§

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>

Source§

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 FromIterator<Option<Column>> for ChunkedArray<ListType>

Source§

fn from_iter<T>(iter: T) -> ChunkedArray<ListType>
where T: IntoIterator<Item = Option<Column>>,

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: PlSmallStr, 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>

Source§

type Item = Option<&'a [u8]>

The type of the elements being iterated over.
Source§

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>

Source§

type Item = Option<&'a [u8]>

The type of the elements being iterated over.
Source§

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>

Source§

type Item = Option<bool>

The type of the elements being iterated over.
Source§

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.
Source§

type Item = Option<Series>

The type of the elements being iterated over.
Source§

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>

Source§

type Item = Option<Series>

The type of the elements being iterated over.
Source§

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.
Source§

type Item = Option<&'a T>

The type of the elements being iterated over.
Source§

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>

Source§

type Item = Option<&'a str>

The type of the elements being iterated over.
Source§

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>

Source§

type Item = Option<<T as PolarsNumericType>::Native>

The type of the elements being iterated over.
Source§

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: &Column, ) -> 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: &[Column], ) -> Result<ChunkedArray<ListType>, PolarsError>

Source§

impl<T> MetadataCollectable<T> for ChunkedArray<T>

Source§

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

Source§

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>

Source§

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>

Source§

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>

Source§

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: PlSmallStr, v: &[T]) -> ChunkedArray<ObjectType<T>>

Initialize by name and values.
Source§

impl NamedFrom<Range<i32>, Int32Type> for ChunkedArray<Int32Type>

Source§

fn new(name: PlSmallStr, range: Range<i32>) -> ChunkedArray<Int32Type>

Initialize by name and values.
Source§

impl NamedFrom<Range<i64>, Int64Type> for ChunkedArray<Int64Type>

Source§

fn new(name: PlSmallStr, range: Range<i64>) -> ChunkedArray<Int64Type>

Initialize by name and values.
Source§

impl NamedFrom<Range<u32>, UInt32Type> for ChunkedArray<UInt32Type>

Source§

fn new(name: PlSmallStr, range: Range<u32>) -> ChunkedArray<UInt32Type>

Initialize by name and values.
Source§

impl NamedFrom<Range<u64>, UInt64Type> for ChunkedArray<UInt64Type>

Source§

fn new(name: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, v: T) -> ChunkedArray<Float64Type>

Initialize by name and values.
Source§

impl<T> NamedFrom<T, [Option<i128>]> for ChunkedArray<Int128Type>
where T: AsRef<[Option<i128>]>,

Source§

fn new(name: PlSmallStr, v: T) -> ChunkedArray<Int128Type>

Initialize by name and values.
Source§

impl<T> NamedFrom<T, [Option<i16>]> for ChunkedArray<Int16Type>
where T: AsRef<[Option<i16>]>,

Source§

fn new(name: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, v: T) -> ChunkedArray<Float64Type>

Initialize by name and values.
Source§

impl<T> NamedFrom<T, [i128]> for ChunkedArray<Int128Type>
where T: AsRef<[i128]>,

Source§

fn new(name: PlSmallStr, v: T) -> ChunkedArray<Int128Type>

Initialize by name and values.
Source§

impl<T> NamedFrom<T, [i16]> for ChunkedArray<Int16Type>
where T: AsRef<[i16]>,

Source§

fn new(name: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, 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: PlSmallStr, it: impl Iterator<Item = B>, ) -> ChunkedArray<BinaryType>

Create a new ChunkedArray from an iterator.

Source§

fn from_slice(name: PlSmallStr, v: &[B]) -> ChunkedArray<BinaryType>

Source§

fn from_slice_options( name: PlSmallStr, opt_v: &[Option<B>], ) -> ChunkedArray<BinaryType>

Source§

fn from_iter_options( name: PlSmallStr, 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: PlSmallStr, it: impl Iterator<Item = bool>, ) -> ChunkedArray<BooleanType>

Create a new ChunkedArray from an iterator.

Source§

fn from_slice(name: PlSmallStr, v: &[bool]) -> ChunkedArray<BooleanType>

Source§

fn from_slice_options( name: PlSmallStr, opt_v: &[Option<bool>], ) -> ChunkedArray<BooleanType>

Source§

fn from_iter_options( name: PlSmallStr, 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: PlSmallStr, it: impl Iterator<Item = T>, ) -> ChunkedArray<ObjectType<T>>

Create a new ChunkedArray from an iterator.

Source§

fn from_slice(name: PlSmallStr, v: &[T]) -> ChunkedArray<ObjectType<T>>

Source§

fn from_slice_options( name: PlSmallStr, opt_v: &[Option<T>], ) -> ChunkedArray<ObjectType<T>>

Source§

fn from_iter_options( name: PlSmallStr, 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: PlSmallStr, it: impl Iterator<Item = S>, ) -> ChunkedArray<StringType>

Create a new ChunkedArray from an iterator.

Source§

fn from_slice(name: PlSmallStr, v: &[S]) -> ChunkedArray<StringType>

Source§

fn from_slice_options( name: PlSmallStr, opt_v: &[Option<S>], ) -> ChunkedArray<StringType>

Source§

fn from_iter_options( name: PlSmallStr, 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: PlSmallStr, it: impl Iterator<Item = <T as PolarsNumericType>::Native>, ) -> ChunkedArray<T>

Create a new ChunkedArray from an iterator.

Source§

fn from_slice( name: PlSmallStr, v: &[<T as PolarsNumericType>::Native], ) -> ChunkedArray<T>

Source§

fn from_slice_options( name: PlSmallStr, opt_v: &[Option<<T as PolarsNumericType>::Native>], ) -> ChunkedArray<T>

Source§

fn from_iter_options( name: PlSmallStr, it: impl Iterator<Item = Option<<T as PolarsNumericType>::Native>>, ) -> ChunkedArray<T>

Create a new ChunkedArray from an iterator.
Source§

impl Not for &ChunkedArray<BooleanType>

Source§

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>

Source§

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, method: QuantileMethod, ) -> 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, method: QuantileMethod, ) -> 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, method: QuantileMethod, ) -> 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>

Source§

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>

Source§

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>

Source§

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>

Source§

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 Serialize for ChunkedArray<BinaryType>

Source§

fn serialize<S>( &self, serializer: S, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Serialize for ChunkedArray<BooleanType>

Source§

fn serialize<S>( &self, serializer: S, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Serialize for ChunkedArray<FixedSizeListType>

Source§

fn serialize<S>( &self, serializer: S, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Serialize for ChunkedArray<ListType>

Source§

fn serialize<S>( &self, serializer: S, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Serialize for ChunkedArray<StringType>

Source§

fn serialize<S>( &self, serializer: S, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Serialize for ChunkedArray<StructType>

Available on crate feature dtype-struct only.
Source§

fn serialize<S>( &self, serializer: S, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<T> Serialize for ChunkedArray<T>

Source§

fn serialize<S>( &self, serializer: S, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. 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<&PlSmallStr>, _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<&PlSmallStr>, 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 starts_with(&self, sub: &str) -> ChunkedArray<BooleanType>

Check if strings starts with a substring
Source§

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

This is more performant than the BinaryChunked version because we use the inline prefix Use the BinaryChunked::ends_with as there is no specialization here for that
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: &Column, ) -> Result<ChunkedArray<StringType>, PolarsError>

Source§

fn strip_chars_start( &self, pat: &Column, ) -> Result<ChunkedArray<StringType>, PolarsError>

Source§

fn strip_chars_end( &self, pat: &Column, ) -> 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<ChunkedArray<StructType>, PolarsError>

Available on crate feature dtype-struct only.
Source§

fn split_exact_inclusive( &self, by: &ChunkedArray<StringType>, n: usize, ) -> Result<ChunkedArray<StructType>, PolarsError>

Available on crate feature dtype-struct only.
Source§

fn splitn( &self, by: &ChunkedArray<StringType>, n: usize, ) -> Result<ChunkedArray<StructType>, 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: &Column, length: &Column, ) -> Result<ChunkedArray<StringType>, PolarsError>

Slice the string values. Read more
Source§

fn str_head(&self, n: &Column) -> Result<ChunkedArray<StringType>, PolarsError>

Slice the first n values of the string. Read more
Source§

fn str_tail(&self, n: &Column) -> Result<ChunkedArray<StringType>, PolarsError>

Slice the last n values of the string. Read more
Source§

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

Available on crate feature strings only.
Escapes all regular expression meta characters in the string.
Source§

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

Source§

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>

Source§

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>

Source§

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>

Source§

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<const B: u64>( &self, by: &[ChunkId<B>], sorted: IsSorted, ) -> ChunkedArray<T>

Safety Read more
Source§

unsafe fn take_opt_chunked_unchecked<const B: u64>( &self, by: &[ChunkId<B>], ) -> 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<I, C> CompactStringExt for C
where I: AsRef<str>, &'a C: for<'a> IntoIterator<Item = &'a I>,

§

fn concat_compact(&self) -> CompactString

Concatenates all the items of a collection into a [CompactString] Read more
§

fn join_compact<S>(&self, separator: S) -> CompactString
where S: AsRef<str>,

Joins all the items of a collection, placing a separator between them, forming a [CompactString] 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoColumn for T
where T: IntoSeries,

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,

Source§

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>,

Source§

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>,

Source§

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

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

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>,