pub struct NullChunked { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl AggList for NullChunked
impl AggList for NullChunked
Source§impl ChunkAnyValue for NullChunked
impl ChunkAnyValue for NullChunked
Source§unsafe fn get_any_value_unchecked(&self, _index: usize) -> AnyValue<'_>
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>
fn get_any_value(&self, _index: usize) -> Result<AnyValue<'_>, PolarsError>
Get a single value. Beware this is slow.
Source§impl ChunkCompareEq<&NullChunked> for NullChunked
impl ChunkCompareEq<&NullChunked> for NullChunked
type Item = ChunkedArray<BooleanType>
Source§fn equal(
&self,
rhs: &NullChunked,
) -> <NullChunked as ChunkCompareEq<&NullChunked>>::Item
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
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
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
fn not_equal_missing( &self, rhs: &NullChunked, ) -> <NullChunked as ChunkCompareEq<&NullChunked>>::Item
Check for inequality where
None == None
.Source§impl ChunkCompareIneq<&NullChunked> for NullChunked
impl ChunkCompareIneq<&NullChunked> for NullChunked
type Item = ChunkedArray<BooleanType>
Source§fn gt(
&self,
rhs: &NullChunked,
) -> <NullChunked as ChunkCompareIneq<&NullChunked>>::Item
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
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
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
fn lt_eq( &self, rhs: &NullChunked, ) -> <NullChunked as ChunkCompareIneq<&NullChunked>>::Item
Less than or equal comparison
Source§impl ChunkNestingUtils for NullChunked
impl ChunkNestingUtils for NullChunked
Source§fn propagate_nulls(&self) -> Option<NullChunked>
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>
fn trim_lists_to_normalized_offsets(&self) -> Option<NullChunked>
Trim all lists of unused start and end elements recursively.
Source§impl Clone for NullChunked
impl Clone for NullChunked
Source§fn clone(&self) -> NullChunked
fn clone(&self) -> NullChunked
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl IntoSeries for NullChunked
impl IntoSeries for NullChunked
fn into_series(self) -> Serieswhere
NullChunked: Sized,
fn is_series() -> bool
Source§impl SeriesTrait for NullChunked
impl SeriesTrait for NullChunked
Source§fn name(&self) -> &PlSmallStr
fn name(&self) -> &PlSmallStr
Name of series.
Source§fn rename(&mut self, name: PlSmallStr)
fn rename(&mut self, name: PlSmallStr)
Rename the Series.
Source§fn chunk_lengths(
&self,
) -> Map<Iter<'_, Box<dyn Array>>, fn(&Box<dyn Array>) -> usize>
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>
fn take( &self, indices: &ChunkedArray<UInt32Type>, ) -> Result<Series, PolarsError>
Source§unsafe fn take_unchecked(&self, indices: &ChunkedArray<UInt32Type>) -> Series
unsafe fn take_unchecked(&self, indices: &ChunkedArray<UInt32Type>) -> Series
Source§fn take_slice(&self, indices: &[u32]) -> Result<Series, PolarsError>
fn take_slice(&self, indices: &[u32]) -> Result<Series, PolarsError>
Source§unsafe fn take_slice_unchecked(&self, indices: &[u32]) -> Series
unsafe fn take_slice_unchecked(&self, indices: &[u32]) -> Series
Source§fn has_nulls(&self) -> bool
fn has_nulls(&self) -> bool
Return if any the chunks in this
ChunkedArray
have nulls.Source§fn drop_nulls(&self) -> Series
fn drop_nulls(&self) -> Series
Drop all null values and return a new Series.
fn cast( &self, dtype: &DataType, _cast_options: CastOptions, ) -> Result<Series, PolarsError>
Source§fn null_count(&self) -> usize
fn null_count(&self) -> usize
Count the null values.
Source§fn arg_unique(&self) -> Result<ChunkedArray<UInt32Type>, PolarsError>
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
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<'_>
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
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)
fn split_at(&self, offset: i64) -> (Series, Series)
Get a zero copy view of the data. Read more
fn sort_with(&self, _options: SortOptions) -> Result<Series, PolarsError>
Source§fn arg_sort(&self, _options: SortOptions) -> ChunkedArray<UInt32Type>
fn arg_sort(&self, _options: SortOptions) -> ChunkedArray<UInt32Type>
Retrieve the indexes needed for a sort.
Source§fn is_null(&self) -> ChunkedArray<BooleanType>
fn is_null(&self) -> ChunkedArray<BooleanType>
Get a mask of the null values.
Source§fn is_not_null(&self) -> ChunkedArray<BooleanType>
fn is_not_null(&self) -> ChunkedArray<BooleanType>
Get a mask of the non-null values.
Source§fn filter(
&self,
filter: &ChunkedArray<BooleanType>,
) -> Result<Series, PolarsError>
fn filter( &self, filter: &ChunkedArray<BooleanType>, ) -> Result<Series, PolarsError>
Filter by boolean mask. This operation clones data.
Source§fn shift(&self, _periods: i64) -> Series
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 morefn append(&mut self, other: &Series) -> Result<(), PolarsError>
fn append_owned(&mut self, other: Series) -> Result<(), PolarsError>
Source§fn clone_inner(&self) -> Arc<dyn SeriesTrait>
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>)
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_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Source§fn as_phys_any(&self) -> &(dyn Any + 'static)
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.fn as_arc_any(self: Arc<NullChunked>) -> Arc<dyn Any + Send + Sync>
Source§fn shrink_to_fit(&mut self)
fn shrink_to_fit(&mut self)
Shrink the capacity of this array to fit its length.
Source§fn limit(&self, num_elements: usize) -> Series
fn limit(&self, num_elements: usize) -> Series
Take
num_elements
from the top as a zero copy view.fn rechunk_validity(&self) -> Option<Bitmap>
Source§fn _sum_as_f64(&self) -> f64
fn _sum_as_f64(&self) -> f64
Returns the sum of the array as an f64.
Source§fn mean(&self) -> Option<f64>
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>
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>
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>
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>
fn trim_lists_to_normalized_offsets(&self) -> Option<Series>
Trim all lists of unused start and end elements recursively. Read more
Source§fn get(&self, index: usize) -> Result<AnyValue<'_>, PolarsError>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
fn xor_reduce(&self) -> Result<Scalar, PolarsError>
Get the bitwise XOR of the Series as a new Series of length 1,
fn approx_n_unique(&self) -> Result<u32, PolarsError>
Source§fn get_object(&self, _index: usize) -> Option<&(dyn PolarsObjectSafe + 'static)>
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)>
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>
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
impl VecHash for NullChunked
Source§fn vec_hash(
&self,
random_state: SeedableRandomState,
buf: &mut Vec<u64>,
) -> Result<(), PolarsError>
fn vec_hash( &self, random_state: SeedableRandomState, buf: &mut Vec<u64>, ) -> Result<(), PolarsError>
Compute the hash for all values in the array.
fn vec_hash_combine( &self, random_state: SeedableRandomState, hashes: &mut [u64], ) -> Result<(), PolarsError>
Auto Trait Implementations§
impl Freeze for NullChunked
impl !RefUnwindSafe for NullChunked
impl Send for NullChunked
impl Sync for NullChunked
impl Unpin for NullChunked
impl !UnwindSafe for NullChunked
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoColumn for Twhere
T: IntoSeries,
impl<T> IntoColumn for Twhere
T: IntoSeries,
fn into_column(self) -> Column
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more