Struct NullChunked

Source
pub struct NullChunked { /* private fields */ }

Implementations§

Source§

impl NullChunked

Source

pub fn len(&self) -> usize

Source

pub fn is_empty(&self) -> bool

Trait Implementations§

Source§

impl AggList for NullChunked

Source§

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

Safety Read more
Source§

impl ChunkAnyValue for NullChunked

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 ChunkCompareEq<&NullChunked> for NullChunked

Source§

type Item = ChunkedArray<BooleanType>

Source§

fn equal( &self, rhs: &NullChunked, ) -> <NullChunked as ChunkCompareEq<&NullChunked>>::Item

Check for equality.
Source§

fn equal_missing( &self, rhs: &NullChunked, ) -> <NullChunked as ChunkCompareEq<&NullChunked>>::Item

Check for equality where None == None.
Source§

fn not_equal( &self, rhs: &NullChunked, ) -> <NullChunked as ChunkCompareEq<&NullChunked>>::Item

Check for inequality.
Source§

fn not_equal_missing( &self, rhs: &NullChunked, ) -> <NullChunked as ChunkCompareEq<&NullChunked>>::Item

Check for inequality where None == None.
Source§

impl ChunkCompareIneq<&NullChunked> for NullChunked

Source§

type Item = ChunkedArray<BooleanType>

Source§

fn gt( &self, rhs: &NullChunked, ) -> <NullChunked as ChunkCompareIneq<&NullChunked>>::Item

Greater than comparison.
Source§

fn gt_eq( &self, rhs: &NullChunked, ) -> <NullChunked as ChunkCompareIneq<&NullChunked>>::Item

Greater than or equal comparison.
Source§

fn lt( &self, rhs: &NullChunked, ) -> <NullChunked as ChunkCompareIneq<&NullChunked>>::Item

Less than comparison.
Source§

fn lt_eq( &self, rhs: &NullChunked, ) -> <NullChunked as ChunkCompareIneq<&NullChunked>>::Item

Less than or equal comparison
Source§

impl ChunkNestingUtils for NullChunked

Source§

fn propagate_nulls(&self) -> Option<NullChunked>

Propagate nulls of nested datatype to all levels of nesting.
Source§

fn trim_lists_to_normalized_offsets(&self) -> Option<NullChunked>

Trim all lists of unused start and end elements recursively.
Source§

fn find_validity_mismatch(&self, other: &Series, idxs: &mut Vec<u32>)

Find the indices of the values where the validity mismatches. Read more
Source§

impl Clone for NullChunked

Source§

fn clone(&self) -> NullChunked

Returns a duplicate 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 IntoSeries for NullChunked

Source§

impl SeriesTrait for NullChunked

Source§

fn name(&self) -> &PlSmallStr

Name of series.
Source§

fn rename(&mut self, name: PlSmallStr)

Rename the Series.
Source§

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

Underlying chunks.
Source§

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

Underlying chunks. Read more
Source§

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

Get the lengths of the underlying chunks
Source§

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

Take from self at the indexes given by idx. Read more
Source§

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

Take from self at the indexes given by idx. Read more
Source§

fn take_slice(&self, indices: &[u32]) -> Result<Series, PolarsError>

Take from self at the indexes given by idx. Read more
Source§

unsafe fn take_slice_unchecked(&self, indices: &[u32]) -> Series

Take from self at the indexes given by idx. Read more
Source§

fn len(&self) -> usize

Get length of series.
Source§

fn has_nulls(&self) -> bool

Return if any the chunks in this ChunkedArray have nulls.
Source§

fn rechunk(&self) -> Series

Aggregate all chunks to a contiguous array of memory.
Source§

fn drop_nulls(&self) -> Series

Drop all null values and return a new Series.
Source§

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

Source§

fn null_count(&self) -> usize

Count the null values.
Source§

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

Get unique values in the Series.
Source§

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

Get unique values in the Series. Read more
Source§

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

Get first indexes of unique values.
Source§

fn new_from_index(&self, _index: usize, length: usize) -> Series

Create a new Series filled with values from the given index. Read more
Source§

unsafe fn get_unchecked(&self, _index: usize) -> AnyValue<'_>

Get a single value by index. Don’t use this operation for loops as a runtime cast is needed for every iteration. Read more
Source§

fn slice(&self, offset: i64, length: usize) -> Series

Get a zero copy view of the data. Read more
Source§

fn split_at(&self, offset: i64) -> (Series, Series)

Get a zero copy view of the data. Read more
Source§

fn sort_with(&self, _options: SortOptions) -> Result<Series, PolarsError>

Source§

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

Retrieve the indexes needed for a sort.
Source§

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

Get a mask of the null values.
Source§

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

Get a mask of the non-null values.
Source§

fn reverse(&self) -> Series

return a Series in reversed order
Source§

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

Filter by boolean mask. This operation clones data.
Source§

fn shift(&self, _periods: i64) -> Series

Shift the values by a given period and fill the parts that will be empty due to this operation with Nones. Read more
Source§

fn append(&mut self, other: &Series) -> Result<(), PolarsError>

Source§

fn append_owned(&mut self, other: Series) -> Result<(), PolarsError>

Source§

fn clone_inner(&self) -> Arc<dyn SeriesTrait>

Clone inner ChunkedArray and wrap in a new Arc
Source§

fn find_validity_mismatch(&self, other: &Series, idxs: &mut Vec<u32>)

Find the indices of elements where the null masks are different recursively.
Source§

fn as_any(&self) -> &(dyn Any + 'static)

Get a hold of the ChunkedArray, Logical or NullChunked as an Any trait reference.
Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Get a hold of the ChunkedArray, Logical or NullChunked as an Any trait mutable reference.
Source§

fn as_phys_any(&self) -> &(dyn Any + 'static)

Get a hold of the ChunkedArray or NullChunked as an Any trait reference. This pierces through Logical types to get the underlying physical array.
Source§

fn as_arc_any(self: Arc<NullChunked>) -> Arc<dyn Any + Send + Sync>

Source§

fn field(&self) -> Cow<'_, Field>

Get field (used in schema)
Source§

fn dtype(&self) -> &DataType

Get datatype of series.
Source§

fn n_chunks(&self) -> usize

Number of chunks in this Series
Source§

fn shrink_to_fit(&mut self)

Shrink the capacity of this array to fit its length.
Source§

fn limit(&self, num_elements: usize) -> Series

Take num_elements from the top as a zero copy view.
Source§

fn is_empty(&self) -> bool

Check if Series is empty.
Source§

fn rechunk_validity(&self) -> Option<Bitmap>

Source§

fn _sum_as_f64(&self) -> f64

Returns the sum of the array as an f64.
Source§

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

Returns the mean value in the array Returns an option because the array is nullable.
Source§

fn std(&self, _ddof: u8) -> Option<f64>

Returns the std value in the array Returns an option because the array is nullable.
Source§

fn var(&self, _ddof: u8) -> Option<f64>

Returns the var value in the array Returns an option because the array is nullable.
Source§

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

Returns the median value in the array Returns an option because the array is nullable.
Source§

fn trim_lists_to_normalized_offsets(&self) -> Option<Series>

Trim all lists of unused start and end elements recursively. Read more
Source§

fn propagate_nulls(&self) -> Option<Series>

Propagate down nulls in nested types. Read more
Source§

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

Get a single value by index. Don’t use this operation for loops as a runtime cast is needed for every iteration.
Source§

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

Rechunk and return a pointer to the start of the Series. Only implemented for numeric types
Source§

fn sum_reduce(&self) -> Result<Scalar, PolarsError>

Get the sum of the Series as a new Scalar. Read more
Source§

fn max_reduce(&self) -> Result<Scalar, PolarsError>

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

fn min_reduce(&self) -> Result<Scalar, PolarsError>

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

fn median_reduce(&self) -> Result<Scalar, PolarsError>

Get the median of the Series as a new Series of length 1.
Source§

fn var_reduce(&self, _ddof: u8) -> Result<Scalar, PolarsError>

Get the variance of the Series as a new Series of length 1.
Source§

fn std_reduce(&self, _ddof: u8) -> Result<Scalar, PolarsError>

Get the standard deviation of the Series as a new Series of length 1.
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 and_reduce(&self) -> Result<Scalar, PolarsError>

Get the bitwise AND of the Series as a new Series of length 1,
Source§

fn or_reduce(&self) -> Result<Scalar, PolarsError>

Get the bitwise OR of the Series as a new Series of length 1,
Source§

fn xor_reduce(&self) -> Result<Scalar, PolarsError>

Get the bitwise XOR of the Series as a new Series of length 1,
Source§

fn first(&self) -> Scalar

Get the first element of the Series as a Scalar Read more
Source§

fn last(&self) -> Scalar

Get the last element of the Series as a Scalar Read more
Source§

fn approx_n_unique(&self) -> Result<u32, PolarsError>

Source§

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

Get the value at this index as a downcastable Any trait ref.
Source§

unsafe fn get_object_chunked_unchecked( &self, _chunk: usize, _index: usize, ) -> Option<&(dyn PolarsObjectSafe + 'static)>

Get the value at this index as a downcastable Any trait ref. Read more
Source§

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

Apply a custom function over a rolling/ moving window of the array. This has quite some dynamic dispatch, so prefer rolling_min, max, mean, sum over this.
Source§

impl VecHash for NullChunked

Source§

fn vec_hash( &self, random_state: SeedableRandomState, buf: &mut Vec<u64>, ) -> Result<(), PolarsError>

Compute the hash for all values in the array.
Source§

fn vec_hash_combine( &self, random_state: SeedableRandomState, hashes: &mut [u64], ) -> Result<(), PolarsError>

Auto Trait Implementations§

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, dest: *mut u8)

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

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

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

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

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

impl<T> Key for T
where T: Clone,

Source§

fn align() -> usize

The alignment necessary for the key. Must return a power of two.
Source§

fn size(&self) -> usize

The size of the key in bytes.
Source§

unsafe fn init(&self, ptr: *mut u8)

Initialize the key in the given memory location. Read more
Source§

unsafe fn get<'a>(ptr: *const u8) -> &'a T

Get a reference to the key from the given memory location. Read more
Source§

unsafe fn drop_in_place(ptr: *mut u8)

Drop the key in place. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

Source§

impl<T> Ungil for T
where T: Send,