Struct polars::chunked_array::ChunkedArray [−][src]
pub struct ChunkedArray<T> { /* fields omitted */ }
Expand description
ChunkedArray
Every Series contains a ChunkedArray<T>
. Unlike Series, ChunkedArray’s 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(ca: &Float32Chunked) -> Float32Chunked { ca.apply(|v| v.cos()) }
If we would like to cast the result we could use a Rust Iterator instead of an apply
method.
Note that Iterators are slightly slower as the null values aren’t ignored implicitly.
fn apply_cosine_and_cast(ca: &Float32Chunked) -> Float64Chunked { ca.into_iter() .map(|opt_v| { opt_v.map(|v| v.cos() as f64) }).collect() }
Another option is to first cast and then use an apply.
fn apply_cosine_and_cast(ca: &Float32Chunked) -> Float64Chunked { ca.cast::<Float64Type>() .unwrap() .apply(|v| v.cos()) }
Conversion between Series and ChunkedArray’s
Conversion from a Series
to a ChunkedArray
is effortless.
fn to_chunked_array(series: &Series) -> Result<&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.into_iter() .for_each(|opt_v| println!("{:?}", opt_v)) } fn iter_backward(ca: &Float32Chunked) { ca.into_iter() .rev() .for_each(|opt_v| println!("{:?}", opt_v)) }
Memory layout
ChunkedArray
’s 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 ChunkArray
will slow down the Iterators, arithmetic and other operations.
When multiplying two ChunkArray'
s with different chunk sizes they cannot utilize SIMD for instance.
However, when chunk size don’t match, Iterators will be used to do the operation (instead of arrows upstream implementation, which may utilize SIMD) and
the result will be a single chunked array.
The key takeaway is that by applying operations on a ChunkArray
of multiple chunks, the results will converge to
a ChunkArray
of a single chunk! It is recommended to leave them as is. If you want to have predictable performance
(no unexpected re-allocation of memory), it is advised to call the rechunk after
multiple append operations.
Implementations
pub fn downcast_iter(
&self
) -> impl Iterator<Item = &GenericStringArray<i64>> + DoubleEndedIterator
pub fn downcast_iter(
&self
) -> impl Iterator<Item = &GenericListArray<i64>> + DoubleEndedIterator
pub fn into_no_null_iter(
&self
) -> impl Iterator<Item = bool> + Send + Sync + ExactSizeIterator + DoubleEndedIterator + TrustedLen
pub fn into_no_null_iter(
&'a self
) -> impl Iterator<Item = &'a str> + Send + Sync + ExactSizeIterator + DoubleEndedIterator + TrustedLen + 'a
pub fn into_no_null_iter(
&self
) -> impl Iterator<Item = Series> + Send + Sync + ExactSizeIterator + DoubleEndedIterator + TrustedLen
pub fn into_no_null_iter(
&self
) -> impl Iterator<Item = &T> + Send + Sync + ExactSizeIterator + DoubleEndedIterator + TrustedLen
pub fn into_no_null_iter(
&self
) -> impl Iterator<Item = u32> + Send + Sync + ExactSizeIterator + DoubleEndedIterator + TrustedLen
pub fn to_ndarray(
&self
) -> Result<ArrayBase<ViewRepr<&<T as ArrowPrimitiveType>::Native>, Dim<[usize; 1]>>, PolarsError>
pub fn to_ndarray(
&self
) -> Result<ArrayBase<ViewRepr<&<T as ArrowPrimitiveType>::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
pub fn to_ndarray<N>(
&self
) -> Result<ArrayBase<OwnedRepr<<N as ArrowPrimitiveType>::Native>, Dim<[usize; 2]>>, PolarsError> where
N: PolarsNumericType,
pub fn to_ndarray<N>(
&self
) -> Result<ArrayBase<OwnedRepr<<N as ArrowPrimitiveType>::Native>, Dim<[usize; 2]>>, PolarsError> where
N: PolarsNumericType,
If all nested Series
have the same length, a 2 dimensional ndarray::Array
is returned.
Safety
No bounds checks
pub fn sample_n(
&self,
n: usize,
with_replacement: bool
) -> Result<ChunkedArray<T>, PolarsError>
pub fn sample_n(
&self,
n: usize,
with_replacement: bool
) -> Result<ChunkedArray<T>, PolarsError>
Sample n datapoints from this ChunkedArray.
pub fn sample_frac(
&self,
frac: f64,
with_replacement: bool
) -> Result<ChunkedArray<T>, PolarsError>
pub fn sample_frac(
&self,
frac: f64,
with_replacement: bool
) -> Result<ChunkedArray<T>, PolarsError>
Sample a fraction between 0.0-1.0 of this ChunkedArray.
impl<T> ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Float,
<T as ArrowPrimitiveType>::Native: NumCast,
impl<T> ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Float,
<T as ArrowPrimitiveType>::Native: NumCast,
pub fn rand_normal(
name: &str,
length: usize,
mean: f64,
std_dev: f64
) -> Result<ChunkedArray<T>, PolarsError>
pub fn rand_normal(
name: &str,
length: usize,
mean: f64,
std_dev: f64
) -> Result<ChunkedArray<T>, PolarsError>
Create ChunkedArray
with samples from a Normal distribution.
Create ChunkedArray
with samples from a Standard Normal distribution.
Create ChunkedArray
with samples from a Uniform distribution.
pub fn rand_bernoulli(
name: &str,
length: usize,
p: f64
) -> Result<ChunkedArray<BooleanType>, PolarsError>
pub fn rand_bernoulli(
name: &str,
length: usize,
p: f64
) -> Result<ChunkedArray<BooleanType>, PolarsError>
Create ChunkedArray
with samples from a Bernoulli distribution.
Get the length of the string values.
Check if strings contain a regex pattern
Replace the leftmost (sub)string by a regex pattern
pub fn replace_all(
&self,
pat: &str,
val: &str
) -> Result<ChunkedArray<Utf8Type>, PolarsError>
pub fn replace_all(
&self,
pat: &str,
val: &str
) -> Result<ChunkedArray<Utf8Type>, PolarsError>
Replace all (sub)strings by a regex pattern
Modify the strings to their lowercase equivalent
Modify the strings to their uppercase equivalent
Concat with the values from a second Utf8Chunked
pub fn str_slice(
&self,
start: i64,
length: Option<u64>
) -> Result<ChunkedArray<Utf8Type>, PolarsError>
pub fn str_slice(
&self,
start: i64,
length: Option<u64>
) -> Result<ChunkedArray<Utf8Type>, PolarsError>
Slice the string values
Determines a substring starting from start
and with optional length length
of each of the elements in array
.
start
can be negative, in which case the start counts from the end of the string.
Extract month from underlying NaiveDateTime representation. Returns the year number in the calendar date.
Extract month from underlying NaiveDateTime representation. Returns the month number starting from 1.
The return value ranges from 1 to 12.
Extract weekday from underlying NaiveDateTime representation. Returns the weekday number where monday = 0 and sunday = 6
Returns the ISO week number starting from 1. The return value ranges from 1 to 53. (The last week of year differs by years.)
Extract day from underlying NaiveDateTime representation. Returns the day of month starting from 1.
The return value ranges from 1 to 31. (The last day of month differs by months.)
Extract hour from underlying NaiveDateTime representation. Returns the hour number from 0 to 23.
Extract minute from underlying NaiveDateTime representation. Returns the minute number from 0 to 59.
Extract second from underlying NaiveDateTime representation. Returns the second number from 0 to 59.
Extract second from underlying NaiveDateTime representation. Returns the number of nanoseconds since the whole non-leap second. The range from 1,000,000,000 to 1,999,999,999 represents the leap second.
Returns the day of year starting from 1.
The return value ranges from 1 to 366. (The last day of year differs by years.)
Format Date64 with a fmt
rule. See chrono strftime/strptime.
Extract month from underlying NaiveDate representation. Returns the year number in the calendar date.
Extract month from underlying NaiveDateTime representation. Returns the month number starting from 1.
The return value ranges from 1 to 12.
Extract weekday from underlying NaiveDate representation. Returns the weekday number where monday = 0 and sunday = 6
Returns the ISO week number starting from 1. The return value ranges from 1 to 53. (The last week of year differs by years.)
Extract day from underlying NaiveDate representation. Returns the day of month starting from 1.
The return value ranges from 1 to 31. (The last day of month differs by months.)
Returns the day of year starting from 1.
The return value ranges from 1 to 366. (The last day of year differs by years.)
Format Date32 with a fmt
rule. See chrono strftime/strptime.
Get Arrow ArrayData
Get a reference to the mapping of categorical types to the string values.
Get the index of the first non null value in this ChunkedArray.
Get the null count and the buffer of bits representing the validity values
Shrink the capacity of this array to fit it’s length.
pub fn unpack_series_matching_type(
&self,
series: &Series
) -> Result<&ChunkedArray<T>, PolarsError>
pub fn unpack_series_matching_type(
&self,
series: &Series
) -> Result<&ChunkedArray<T>, PolarsError>
Series to ChunkedArray
Unique id representing the number of chunks
Returns true if contains a single chunk and has no null values
Count the null values.
Take a view of top n elements
Append arrow array in place.
let mut array = Int32Chunked::new_from_slice("array", &[1, 2]); let array_2 = Int32Chunked::new_from_slice("2nd", &[3]); array.append(&array_2); assert_eq!(Vec::from(&array), [Some(1), Some(2), Some(3)])
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
Get a mask of the null values.
Get a mask of the null values.
Get the head of the ChunkedArray
Get the tail of the ChunkedArray
Append in place.
pub fn new_from_chunks(
name: &str,
chunks: Vec<Arc<dyn Array + 'static>, Global>
) -> ChunkedArray<T>
pub fn new_from_chunks(
name: &str,
chunks: Vec<Arc<dyn Array + 'static>, Global>
) -> ChunkedArray<T>
Create a new ChunkedArray from existing chunks.
pub fn new_from_aligned_vec(
name: &str,
v: AlignedVec<<T as ArrowPrimitiveType>::Native>
) -> ChunkedArray<T>
pub fn new_from_aligned_vec(
name: &str,
v: AlignedVec<<T as ArrowPrimitiveType>::Native>
) -> ChunkedArray<T>
Create a new ChunkedArray by taking ownership of the AlignedVec. This operation is zero copy.
pub fn new_from_owned_with_null_bitmap(
name: &str,
values: AlignedVec<<T as ArrowPrimitiveType>::Native>,
buffer: Option<Buffer>
) -> ChunkedArray<T>
pub fn new_from_owned_with_null_bitmap(
name: &str,
values: AlignedVec<<T as ArrowPrimitiveType>::Native>,
buffer: Option<Buffer>
) -> ChunkedArray<T>
Nullify values in slice with an existing null bitmap
Contiguous slice
pub fn data_views(
&self
) -> impl Iterator<Item = &[<T as ArrowPrimitiveType>::Native]> + DoubleEndedIterator
pub fn data_views(
&self
) -> impl Iterator<Item = &[<T as ArrowPrimitiveType>::Native]> + 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
pub fn into_no_null_iter(
&self
) -> impl Iterator<Item = <T as ArrowPrimitiveType>::Native> + Send + Sync + ExactSizeIterator + DoubleEndedIterator + TrustedLen
pub fn map<B, F>(
&self,
f: F
) -> Result<Map<Copied<Iter<'_, <T as ArrowPrimitiveType>::Native>>, F>, PolarsError> where
F: Fn(<T as ArrowPrimitiveType>::Native) -> B,
pub fn map<B, F>(
&self,
f: F
) -> Result<Map<Copied<Iter<'_, <T as ArrowPrimitiveType>::Native>>, F>, PolarsError> where
F: Fn(<T as ArrowPrimitiveType>::Native) -> B,
If cont_slice is successful a closure is mapped over the elements.
Example
use polars_core::prelude::*; fn multiply(ca: &UInt32Chunked) -> Result<Series> { let mapped = ca.map(|v| v * 2)?; Ok(mapped.collect()) }
pub fn map_null_checks<B, F>(
&'a self,
f: F
) -> Map<Box<dyn PolarsIterator<Item = Option<<T as ArrowPrimitiveType>::Native>> + 'a, Global>, F> where
F: Fn(Option<<T as ArrowPrimitiveType>::Native>) -> B,
pub fn map_null_checks<B, F>(
&'a self,
f: F
) -> Map<Box<dyn PolarsIterator<Item = Option<<T as ArrowPrimitiveType>::Native>> + 'a, Global>, F> where
F: Fn(Option<<T as ArrowPrimitiveType>::Native>) -> B,
If cont_slice fails we can fallback on an iterator with null checks and map a closure over the elements.
Example
use polars_core::prelude::*; use itertools::Itertools; fn multiply(ca: &UInt32Chunked) -> Series { let mapped_result = ca.map(|v| v * 2); if let Ok(mapped) = mapped_result { mapped.collect() } else { ca .map_null_checks(|opt_v| opt_v.map(|v |v * 2)).collect() } }
pub fn fold<F, B>(&self, init: B, f: F) -> Result<B, PolarsError> where
F: Fn(B, <T as ArrowPrimitiveType>::Native) -> B,
pub fn fold<F, B>(&self, init: B, f: F) -> Result<B, PolarsError> where
F: Fn(B, <T as ArrowPrimitiveType>::Native) -> B,
If cont_slice is successful a closure can be applied as aggregation
Example
use polars_core::prelude::*; fn compute_sum(ca: &UInt32Chunked) -> Result<u32> { ca.fold(0, |acc, value| acc + value) }
pub fn fold_null_checks<F, B>(&self, init: B, f: F) -> B where
F: Fn(B, Option<<T as ArrowPrimitiveType>::Native>) -> B,
pub fn fold_null_checks<F, B>(&self, init: B, f: F) -> B where
F: Fn(B, Option<<T as ArrowPrimitiveType>::Native>) -> B,
If cont_slice fails we can fallback on an iterator with null checks and a closure for aggregation
Example
use polars_core::prelude::*; fn compute_sum(ca: &UInt32Chunked) -> u32 { match ca.fold(0, |acc, value| acc + value) { // faster sum without null checks was successful Ok(sum) => sum, // Null values or multiple chunks in ChunkedArray, we need to do more bounds checking Err(_) => ca.fold_null_checks(0, |acc, opt_value| { match opt_value { Some(v) => acc + v, None => acc } }) } }
Get the inner data type of the list.
impl<T> ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Num,
<T as ArrowPrimitiveType>::Native: NumCast,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
ChunkedArray<T>: IntoSeries,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
impl<T> ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Num,
<T as ArrowPrimitiveType>::Native: NumCast,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
ChunkedArray<T>: IntoSeries,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
We cannot override the left hand side behaviour. So we create a trait LhsNumOps. This allows for 1.add(&Series)
Apply lhs - self
Apply lhs / self
Apply lhs % self
Trait Implementations
impl<'_, T> Add<&'_ ChunkedArray<T>> for &'_ ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Mul<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Zero,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Mul<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
impl<'_, T> Add<&'_ ChunkedArray<T>> for &'_ ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Mul<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Zero,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Mul<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
type Output = ChunkedArray<T>
type Output = ChunkedArray<T>
The resulting type after applying the +
operator.
pub fn add(
self,
rhs: &'_ ChunkedArray<T>
) -> <&'_ ChunkedArray<T> as Add<&'_ ChunkedArray<T>>>::Output
pub fn add(
self,
rhs: &'_ ChunkedArray<T>
) -> <&'_ ChunkedArray<T> as Add<&'_ ChunkedArray<T>>>::Output
Performs the +
operation. Read more
type Output = ChunkedArray<Utf8Type>
type Output = ChunkedArray<Utf8Type>
The resulting type after applying the +
operator.
pub fn add(
self,
rhs: &'_ ChunkedArray<Utf8Type>
) -> <&'_ ChunkedArray<Utf8Type> as Add<&'_ ChunkedArray<Utf8Type>>>::Output
pub fn add(
self,
rhs: &'_ ChunkedArray<Utf8Type>
) -> <&'_ ChunkedArray<Utf8Type> as Add<&'_ ChunkedArray<Utf8Type>>>::Output
Performs the +
operation. Read more
impl<T> Add<ChunkedArray<T>> for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Mul<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Rem<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Zero,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Mul<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Rem<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
impl<T> Add<ChunkedArray<T>> for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Mul<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Rem<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Zero,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Mul<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Rem<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
type Output = ChunkedArray<T>
type Output = ChunkedArray<T>
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = ChunkedArray<Utf8Type>
type Output = ChunkedArray<Utf8Type>
The resulting type after applying the +
operator.
pub fn add(
self,
rhs: ChunkedArray<Utf8Type>
) -> <ChunkedArray<Utf8Type> as Add<ChunkedArray<Utf8Type>>>::Output
pub fn add(
self,
rhs: ChunkedArray<Utf8Type>
) -> <ChunkedArray<Utf8Type> as Add<ChunkedArray<Utf8Type>>>::Output
Performs the +
operation. Read more
impl<T, N> Add<N> for ChunkedArray<T> where
N: Num + ToPrimitive,
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: NumCast,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
impl<T, N> Add<N> for ChunkedArray<T> where
N: Num + ToPrimitive,
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: NumCast,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
type Output = ChunkedArray<T>
type Output = ChunkedArray<T>
The resulting type after applying the +
operator.
impl<'_, T, N> Add<N> for &'_ ChunkedArray<T> where
N: Num + ToPrimitive,
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: NumCast,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
impl<'_, T, N> Add<N> for &'_ ChunkedArray<T> where
N: Num + ToPrimitive,
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: NumCast,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
type Output = ChunkedArray<T>
type Output = ChunkedArray<T>
The resulting type after applying the +
operator.
impl<T> AggList for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Num,
ChunkedArray<T>: IntoSeries,
impl<T> AggList for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Num,
ChunkedArray<T>: IntoSeries,
pub fn as_naive_datetime_iter(
&'a self
) -> Box<dyn Iterator<Item = Option<NaiveDateTime>> + 'a, Global>
pub fn as_naive_datetime_iter(
&'a self
) -> Box<dyn Iterator<Item = Option<NaiveDateTime>> + 'a, Global>
Performs the conversion.
Performs the conversion.
type Output = ChunkedArray<BooleanType>
type Output = ChunkedArray<BooleanType>
The resulting type after applying the &
operator.
pub fn bitand(
self,
rhs: &'_ ChunkedArray<BooleanType>
) -> <&'_ ChunkedArray<BooleanType> as BitAnd<&'_ ChunkedArray<BooleanType>>>::Output
pub fn bitand(
self,
rhs: &'_ ChunkedArray<BooleanType>
) -> <&'_ ChunkedArray<BooleanType> as BitAnd<&'_ ChunkedArray<BooleanType>>>::Output
Performs the &
operation. Read more
type Output = ChunkedArray<BooleanType>
type Output = ChunkedArray<BooleanType>
The resulting type after applying the &
operator.
pub fn bitand(
self,
rhs: ChunkedArray<BooleanType>
) -> <ChunkedArray<BooleanType> as BitAnd<ChunkedArray<BooleanType>>>::Output
pub fn bitand(
self,
rhs: ChunkedArray<BooleanType>
) -> <ChunkedArray<BooleanType> as BitAnd<ChunkedArray<BooleanType>>>::Output
Performs the &
operation. Read more
type Output = ChunkedArray<BooleanType>
type Output = ChunkedArray<BooleanType>
The resulting type after applying the |
operator.
pub fn bitor(
self,
rhs: &'_ ChunkedArray<BooleanType>
) -> <&'_ ChunkedArray<BooleanType> as BitOr<&'_ ChunkedArray<BooleanType>>>::Output
pub fn bitor(
self,
rhs: &'_ ChunkedArray<BooleanType>
) -> <&'_ ChunkedArray<BooleanType> as BitOr<&'_ ChunkedArray<BooleanType>>>::Output
Performs the |
operation. Read more
type Output = ChunkedArray<BooleanType>
type Output = ChunkedArray<BooleanType>
The resulting type after applying the |
operator.
pub fn bitor(
self,
rhs: ChunkedArray<BooleanType>
) -> <ChunkedArray<BooleanType> as BitOr<ChunkedArray<BooleanType>>>::Output
pub fn bitor(
self,
rhs: ChunkedArray<BooleanType>
) -> <ChunkedArray<BooleanType> as BitOr<ChunkedArray<BooleanType>>>::Output
Performs the |
operation. Read more
impl<T> ChunkAgg<<T as ArrowPrimitiveType>::Native> for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: PartialOrd<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Num,
<T as ArrowPrimitiveType>::Native: NumCast,
<T as ArrowPrimitiveType>::Native: Zero,
impl<T> ChunkAgg<<T as ArrowPrimitiveType>::Native> for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: PartialOrd<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Num,
<T as ArrowPrimitiveType>::Native: NumCast,
<T as ArrowPrimitiveType>::Native: Zero,
Aggregate the sum of the ChunkedArray.
Returns None
if the array is empty or only contains null values. Read more
Returns the maximum value in the array, according to the natural order.
Returns None
if the array is empty or only contains null values. Read more
Returns the mean value in the array.
Returns None
if the array is empty or only contains null values. Read more
Returns the mean value in the array.
Returns None
if the array is empty or only contains null values. Read more
pub fn quantile(
&self,
quantile: f64
) -> Result<Option<<T as ArrowPrimitiveType>::Native>, PolarsError>
pub fn quantile(
&self,
quantile: f64
) -> Result<Option<<T as ArrowPrimitiveType>::Native>, PolarsError>
Aggregate a given quantile of the ChunkedArray.
Returns None
if the array is empty or only contains null values. Read more
Aggregate the sum of the ChunkedArray.
Returns None
if the array is empty or only contains null values. Read more
Returns the maximum value in the array, according to the natural order.
Returns None
if the array is empty or only contains null values. Read more
Returns the mean value in the array.
Returns None
if the array is empty or only contains null values. Read more
Returns the mean value in the array.
Returns None
if the array is empty or only contains null values. Read more
Aggregate the sum of the ChunkedArray.
Returns None
if the array is empty or only contains null values. Read more
Returns the maximum value in the array, according to the natural order.
Returns None
if the array is empty or only contains null values. Read more
Returns the mean value in the array.
Returns None
if the array is empty or only contains null values. Read more
Returns the mean value in the array.
Returns None
if the array is empty or only contains null values. Read more
Booleans are casted to 1 or 0.
Returns None
if the array is empty or only contains null values.
Returns the maximum value in the array, according to the natural order.
Returns None
if the array is empty or only contains null values. Read more
Returns the mean value in the array.
Returns None
if the array is empty or only contains null values. Read more
Returns the mean value in the array.
Returns None
if the array is empty or only contains null values. Read more
Get the sum of the ChunkedArray as a new Series of length 1.
Get the max of the ChunkedArray as a new Series of length 1.
Get the min of the ChunkedArray as a new Series of length 1.
Get the mean of the ChunkedArray as a new Series of length 1.
Get the median of the ChunkedArray as a new Series of length 1.
Get the quantile of the ChunkedArray as a new Series of length 1.
impl<T> ChunkAggSeries for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: PartialOrd<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Num,
<T as ArrowPrimitiveType>::Native: NumCast,
ChunkedArray<T>: IntoSeries,
impl<T> ChunkAggSeries for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: PartialOrd<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Num,
<T as ArrowPrimitiveType>::Native: NumCast,
ChunkedArray<T>: IntoSeries,
Get the sum of the ChunkedArray as a new Series of length 1.
Get the max of the ChunkedArray as a new Series of length 1.
Get the min of the ChunkedArray as a new Series of length 1.
Get the mean of the ChunkedArray as a new Series of length 1.
Get the median of the ChunkedArray as a new Series of length 1.
Get the quantile of the ChunkedArray as a new Series of length 1.
Get the sum of the ChunkedArray as a new Series of length 1.
Get the max of the ChunkedArray as a new Series of length 1.
Get the min of the ChunkedArray as a new Series of length 1.
Get the mean of the ChunkedArray as a new Series of length 1.
Get the median of the ChunkedArray as a new Series of length 1.
Get the quantile of the ChunkedArray as a new Series of length 1.
Get the sum of the ChunkedArray as a new Series of length 1.
Get the max of the ChunkedArray as a new Series of length 1.
Get the min of the ChunkedArray as a new Series of length 1.
Get the mean of the ChunkedArray as a new Series of length 1.
Get the median of the ChunkedArray as a new Series of length 1.
Get the quantile of the ChunkedArray as a new Series of length 1.
Get the sum of the ChunkedArray as a new Series of length 1.
Get the max of the ChunkedArray as a new Series of length 1.
Get the min of the ChunkedArray as a new Series of length 1.
Get the mean of the ChunkedArray as a new Series of length 1.
Get the median of the ChunkedArray as a new Series of length 1.
Get the quantile of the ChunkedArray as a new Series of length 1.
Get the sum of the ChunkedArray as a new Series of length 1.
Get the max of the ChunkedArray as a new Series of length 1.
Get the min of the ChunkedArray as a new Series of length 1.
Get the mean of the ChunkedArray as a new Series of length 1.
Get the median of the ChunkedArray as a new Series of length 1.
Get the quantile of the ChunkedArray as a new Series of length 1.
Get a single value. Beware this is slow. If you need to use this slightly performant, cast Categorical to UInt32 Read more
Get a single value. Beware this is slow.
Get a single value. Beware this is slow. If you need to use this slightly performant, cast Categorical to UInt32 Read more
Get a single value. Beware this is slow.
Get a single value. Beware this is slow. If you need to use this slightly performant, cast Categorical to UInt32 Read more
Get a single value. Beware this is slow.
Get a single value. Beware this is slow. If you need to use this slightly performant, cast Categorical to UInt32 Read more
Get a single value. Beware this is slow.
Get a single value. Beware this is slow. If you need to use this slightly performant, cast Categorical to UInt32 Read more
Get a single value. Beware this is slow.
Get a single value. Beware this is slow. If you need to use this slightly performant, cast Categorical to UInt32 Read more
Get a single value. Beware this is slow.
pub fn apply_cast_numeric<F, S>(&'a self, f: F) -> ChunkedArray<S> where
F: Fn(&'a str) -> <S as ArrowPrimitiveType>::Native + Copy,
S: PolarsNumericType,
pub fn apply_cast_numeric<F, S>(&'a self, f: F) -> ChunkedArray<S> where
F: Fn(&'a str) -> <S as ArrowPrimitiveType>::Native + Copy,
S: PolarsNumericType,
Apply a closure elementwise and cast to a Numeric ChunkedArray. This is fastest when the null check branching is more expensive than the closure application. Read more
pub fn branch_apply_cast_numeric_no_null<F, S>(
&'a self,
f: F
) -> ChunkedArray<S> where
F: Fn(Option<&'a str>) -> <S as ArrowPrimitiveType>::Native + Copy,
S: PolarsNumericType,
pub fn branch_apply_cast_numeric_no_null<F, S>(
&'a self,
f: F
) -> ChunkedArray<S> where
F: Fn(Option<&'a str>) -> <S as ArrowPrimitiveType>::Native + Copy,
S: PolarsNumericType,
Apply a closure on optional values and cast to Numeric ChunkedArray without null values.
Apply a closure elementwise. This is fastest when the null check branching is more expensive than the closure application. Often it is. Read more
Apply a closure elementwise including null values.
Apply a closure elementwise. The closure gets the index of the element as first argument.
Apply a closure elementwise. The closure gets the index of the element as first argument.
impl<'a, T> ChunkApply<'a, <T as ArrowPrimitiveType>::Native, <T as ArrowPrimitiveType>::Native> for ChunkedArray<T> where
T: PolarsNumericType,
impl<'a, T> ChunkApply<'a, <T as ArrowPrimitiveType>::Native, <T as ArrowPrimitiveType>::Native> for ChunkedArray<T> where
T: PolarsNumericType,
pub fn apply_cast_numeric<F, S>(&self, f: F) -> ChunkedArray<S> where
F: Fn(<T as ArrowPrimitiveType>::Native) -> <S as ArrowPrimitiveType>::Native + Copy,
S: PolarsNumericType,
pub fn apply_cast_numeric<F, S>(&self, f: F) -> ChunkedArray<S> where
F: Fn(<T as ArrowPrimitiveType>::Native) -> <S as ArrowPrimitiveType>::Native + Copy,
S: PolarsNumericType,
Apply a closure elementwise and cast to a Numeric ChunkedArray. This is fastest when the null check branching is more expensive than the closure application. Read more
pub fn branch_apply_cast_numeric_no_null<F, S>(&self, f: F) -> ChunkedArray<S> where
F: Fn(Option<<T as ArrowPrimitiveType>::Native>) -> <S as ArrowPrimitiveType>::Native + Copy,
S: PolarsNumericType,
pub fn branch_apply_cast_numeric_no_null<F, S>(&self, f: F) -> ChunkedArray<S> where
F: Fn(Option<<T as ArrowPrimitiveType>::Native>) -> <S as ArrowPrimitiveType>::Native + Copy,
S: PolarsNumericType,
Apply a closure on optional values and cast to Numeric ChunkedArray without null values.
pub fn apply<F>(&'a self, f: F) -> ChunkedArray<T> where
F: Fn(<T as ArrowPrimitiveType>::Native) -> <T as ArrowPrimitiveType>::Native + Copy,
pub fn apply<F>(&'a self, f: F) -> ChunkedArray<T> where
F: Fn(<T as ArrowPrimitiveType>::Native) -> <T as ArrowPrimitiveType>::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
pub fn apply_on_opt<F>(&'a self, f: F) -> ChunkedArray<T> where
F: Fn(Option<<T as ArrowPrimitiveType>::Native>) -> Option<<T as ArrowPrimitiveType>::Native> + Copy,
pub fn apply_on_opt<F>(&'a self, f: F) -> ChunkedArray<T> where
F: Fn(Option<<T as ArrowPrimitiveType>::Native>) -> Option<<T as ArrowPrimitiveType>::Native> + Copy,
Apply a closure elementwise including null values.
pub fn apply_with_idx<F>(&'a self, f: F) -> ChunkedArray<T> where
F: Fn((usize, <T as ArrowPrimitiveType>::Native)) -> <T as ArrowPrimitiveType>::Native + Copy,
pub fn apply_with_idx<F>(&'a self, f: F) -> ChunkedArray<T> where
F: Fn((usize, <T as ArrowPrimitiveType>::Native)) -> <T as ArrowPrimitiveType>::Native + Copy,
Apply a closure elementwise. The closure gets the index of the element as first argument.
pub fn apply_with_idx_on_opt<F>(&'a self, f: F) -> ChunkedArray<T> where
F: Fn((usize, Option<<T as ArrowPrimitiveType>::Native>)) -> Option<<T as ArrowPrimitiveType>::Native> + Copy,
pub fn apply_with_idx_on_opt<F>(&'a self, f: F) -> ChunkedArray<T> where
F: Fn((usize, Option<<T as ArrowPrimitiveType>::Native>)) -> Option<<T as ArrowPrimitiveType>::Native> + Copy,
Apply a closure elementwise. The closure gets the index of the element as first argument.
pub fn apply_to_slice<F, V>(&'a self, f: F, slice: &mut [V]) where
F: Fn(Option<<T as ArrowPrimitiveType>::Native>, &V) -> V,
pub fn apply_to_slice<F, V>(&'a self, f: F, slice: &mut [V]) where
F: Fn(Option<<T as ArrowPrimitiveType>::Native>, &V) -> V,
Apply a closure elementwise and write results to a mutable slice.
Apply a closure F
elementwise.
Apply a closure elementwise. The closure gets the index of the element as first argument.
Apply a closure elementwise. The closure gets the index of the element as first argument.
pub fn apply_cast_numeric<F, S>(&self, f: F) -> ChunkedArray<S> where
F: Fn(Series) -> <S as ArrowPrimitiveType>::Native + Copy,
S: PolarsNumericType,
pub fn apply_cast_numeric<F, S>(&self, f: F) -> ChunkedArray<S> where
F: Fn(Series) -> <S as ArrowPrimitiveType>::Native + Copy,
S: PolarsNumericType,
Apply a closure elementwise and cast to a Numeric ChunkedArray. This is fastest when the null check branching is more expensive than the closure application. Read more
pub fn branch_apply_cast_numeric_no_null<F, S>(&self, f: F) -> ChunkedArray<S> where
F: Fn(Option<Series>) -> <S as ArrowPrimitiveType>::Native + Copy,
S: PolarsNumericType,
pub fn branch_apply_cast_numeric_no_null<F, S>(&self, f: F) -> ChunkedArray<S> where
F: Fn(Option<Series>) -> <S as ArrowPrimitiveType>::Native + Copy,
S: PolarsNumericType,
Apply a closure on optional values and cast to Numeric ChunkedArray without null values.
pub fn apply_on_opt<F>(&'a self, f: F) -> ChunkedArray<ListType> where
F: Fn(Option<Series>) -> Option<Series> + Copy,
pub fn apply_on_opt<F>(&'a self, f: F) -> ChunkedArray<ListType> where
F: Fn(Option<Series>) -> Option<Series> + Copy,
Apply a closure elementwise including null values.
pub fn apply_cast_numeric<F, S>(&self, f: F) -> ChunkedArray<S> where
F: Fn(bool) -> <S as ArrowPrimitiveType>::Native + Copy,
S: PolarsNumericType,
pub fn apply_cast_numeric<F, S>(&self, f: F) -> ChunkedArray<S> where
F: Fn(bool) -> <S as ArrowPrimitiveType>::Native + Copy,
S: PolarsNumericType,
Apply a closure elementwise and cast to a Numeric ChunkedArray. This is fastest when the null check branching is more expensive than the closure application. Read more
pub fn branch_apply_cast_numeric_no_null<F, S>(&self, f: F) -> ChunkedArray<S> where
F: Fn(Option<bool>) -> <S as ArrowPrimitiveType>::Native + Copy,
S: PolarsNumericType,
pub fn branch_apply_cast_numeric_no_null<F, S>(&self, f: F) -> ChunkedArray<S> where
F: Fn(Option<bool>) -> <S as ArrowPrimitiveType>::Native + Copy,
S: PolarsNumericType,
Apply a closure on optional values and cast to Numeric ChunkedArray without null values.
Apply a closure elementwise. This is fastest when the null check branching is more expensive than the closure application. Often it is. Read more
pub fn apply_on_opt<F>(&'a self, f: F) -> ChunkedArray<BooleanType> where
F: Fn(Option<bool>) -> Option<bool> + Copy,
pub fn apply_on_opt<F>(&'a self, f: F) -> ChunkedArray<BooleanType> where
F: Fn(Option<bool>) -> Option<bool> + Copy,
Apply a closure elementwise including null values.
pub fn apply_with_idx<F>(&'a self, f: F) -> ChunkedArray<BooleanType> where
F: Fn((usize, bool)) -> bool + Copy,
pub fn apply_with_idx<F>(&'a self, f: F) -> ChunkedArray<BooleanType> where
F: Fn((usize, bool)) -> bool + Copy,
Apply a closure elementwise. The closure gets the index of the element as first argument.
pub fn apply_with_idx_on_opt<F>(&'a self, f: F) -> ChunkedArray<BooleanType> where
F: Fn((usize, Option<bool>)) -> Option<bool> + Copy,
pub fn apply_with_idx_on_opt<F>(&'a self, f: F) -> ChunkedArray<BooleanType> where
F: Fn((usize, Option<bool>)) -> Option<bool> + Copy,
Apply a closure elementwise. The closure gets the index of the element as first argument.
pub fn apply_kernel<F>(&self, f: F) -> ChunkedArray<BooleanType> where
F: Fn(&BooleanArray) -> Arc<dyn Array + 'static>,
pub fn apply_kernel<F>(&self, f: F) -> ChunkedArray<BooleanType> where
F: Fn(&BooleanArray) -> Arc<dyn Array + 'static>,
Apply kernel and return result as a new ChunkedArray.
pub fn apply_kernel_cast<F, S>(&self, f: F) -> ChunkedArray<S> where
F: Fn(&BooleanArray) -> Arc<dyn Array + 'static>,
S: PolarsDataType,
pub fn apply_kernel_cast<F, S>(&self, f: F) -> ChunkedArray<S> where
F: Fn(&BooleanArray) -> Arc<dyn Array + 'static>,
S: PolarsDataType,
Apply a kernel that outputs an array of different type.
pub fn apply_kernel<F>(&self, f: F) -> ChunkedArray<Utf8Type> where
F: Fn(&GenericStringArray<i64>) -> Arc<dyn Array + 'static>,
pub fn apply_kernel<F>(&self, f: F) -> ChunkedArray<Utf8Type> where
F: Fn(&GenericStringArray<i64>) -> Arc<dyn Array + 'static>,
Apply kernel and return result as a new ChunkedArray.
pub fn apply_kernel_cast<F, S>(&self, f: F) -> ChunkedArray<S> where
F: Fn(&GenericStringArray<i64>) -> Arc<dyn Array + 'static>,
S: PolarsDataType,
pub fn apply_kernel_cast<F, S>(&self, f: F) -> ChunkedArray<S> where
F: Fn(&GenericStringArray<i64>) -> Arc<dyn Array + 'static>,
S: PolarsDataType,
Apply a kernel that outputs an array of different type.
pub fn apply_kernel<F>(&self, f: F) -> ChunkedArray<T> where
F: Fn(&PrimitiveArray<T>) -> Arc<dyn Array + 'static>,
pub fn apply_kernel<F>(&self, f: F) -> ChunkedArray<T> where
F: Fn(&PrimitiveArray<T>) -> Arc<dyn Array + 'static>,
Apply kernel and return result as a new ChunkedArray.
pub fn apply_kernel_cast<F, S>(&self, f: F) -> ChunkedArray<S> where
F: Fn(&PrimitiveArray<T>) -> Arc<dyn Array + 'static>,
S: PolarsDataType,
pub fn apply_kernel_cast<F, S>(&self, f: F) -> ChunkedArray<S> where
F: Fn(&PrimitiveArray<T>) -> Arc<dyn Array + 'static>,
S: PolarsDataType,
Apply a kernel that outputs an array of different type.
impl<T> ChunkCast for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: NumCast,
impl<T> ChunkCast for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: NumCast,
Cast ChunkedArray<T>
to ChunkedArray<N>
Cast ChunkedArray<T>
to ChunkedArray<N>
Cast ChunkedArray<T>
to ChunkedArray<N>
We cannot cast anything to or from List/LargeList So this implementation casts the inner tyupe
Cast ChunkedArray<T>
to ChunkedArray<N>
Cast ChunkedArray<T>
to ChunkedArray<N>
Check for equality and regard missing values as equal.
Check for equality.
Check for inequality.
Greater than comparison.
Greater than or equal comparison.
Less than comparison.
Less than or equal comparison
Check for equality and regard missing values as equal.
Check for equality.
Check for inequality.
Greater than comparison.
Greater than or equal comparison.
Less than comparison.
Less than or equal comparison
impl<'_, T> ChunkCompare<&'_ ChunkedArray<T>> for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: NumComp,
impl<'_, T> ChunkCompare<&'_ ChunkedArray<T>> for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: NumComp,
Check for equality and regard missing values as equal.
Check for equality.
Check for inequality.
Greater than comparison.
Greater than or equal comparison.
Less than comparison.
Less than or equal comparison
Check for equality and regard missing values as equal.
Check for equality.
Check for inequality.
Greater than comparison.
Greater than or equal comparison.
Less than comparison.
Less than or equal comparison
Check for equality and regard missing values as equal.
Check for equality.
Check for inequality.
Greater than comparison.
Greater than or equal comparison.
Less than comparison.
Less than or equal comparison
impl<T, Rhs> ChunkCompare<Rhs> for ChunkedArray<T> where
T: PolarsNumericType,
Rhs: NumComp + ToPrimitive,
<T as ArrowPrimitiveType>::Native: NumCast,
impl<T, Rhs> ChunkCompare<Rhs> for ChunkedArray<T> where
T: PolarsNumericType,
Rhs: NumComp + ToPrimitive,
<T as ArrowPrimitiveType>::Native: NumCast,
Check for equality and regard missing values as equal.
Check for equality.
Check for inequality.
Greater than comparison.
Greater than or equal comparison.
Less than comparison.
Less than or equal comparison
Get an array with the cumulative max computed at every element
Get an array with the cumulative min computed at every element
Get an array with the cumulative sum computed at every element
Get an array with the cumulative max computed at every element
Get an array with the cumulative min computed at every element
Get an array with the cumulative sum computed at every element
Get an array with the cumulative max computed at every element
Get an array with the cumulative min computed at every element
Get an array with the cumulative sum computed at every element
Get an array with the cumulative max computed at every element
Get an array with the cumulative min computed at every element
Get an array with the cumulative sum computed at every element
impl<T> ChunkCumAgg<T> for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Bounded,
<T as ArrowPrimitiveType>::Native: PartialOrd<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: AddAssign<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
ChunkedArray<T>: FromIterator<Option<<T as ArrowPrimitiveType>::Native>>,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
impl<T> ChunkCumAgg<T> for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Bounded,
<T as ArrowPrimitiveType>::Native: PartialOrd<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: AddAssign<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
ChunkedArray<T>: FromIterator<Option<<T as ArrowPrimitiveType>::Native>>,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
Get an array with the cumulative max computed at every element
Get an array with the cumulative min computed at every element
Get an array with the cumulative sum computed at every element
Get an array with the cumulative max computed at every element
Get an array with the cumulative min computed at every element
Get an array with the cumulative sum computed at every element
Create a new ChunkedArray filled with values at that index.
Create a new ChunkedArray filled with values at that index.
Create a new ChunkedArray filled with values at that index.
Create a new ChunkedArray filled with values at that index.
impl<T> ChunkExpandAtIndex<T> for ChunkedArray<T> where
T: PolarsPrimitiveType,
ChunkedArray<T>: ChunkFull<<T as ArrowPrimitiveType>::Native>,
ChunkedArray<T>: TakeRandom,
<ChunkedArray<T> as TakeRandom>::Item == <T as ArrowPrimitiveType>::Native,
impl<T> ChunkExpandAtIndex<T> for ChunkedArray<T> where
T: PolarsPrimitiveType,
ChunkedArray<T>: ChunkFull<<T as ArrowPrimitiveType>::Native>,
ChunkedArray<T>: TakeRandom,
<ChunkedArray<T> as TakeRandom>::Item == <T as ArrowPrimitiveType>::Native,
Create a new ChunkedArray filled with values at that index.
Create a new ChunkedArray filled with values at that index.
pub fn fill_none(
&self,
strategy: FillNoneStrategy
) -> Result<ChunkedArray<Utf8Type>, PolarsError>
pub fn fill_none(
&self,
strategy: FillNoneStrategy
) -> Result<ChunkedArray<Utf8Type>, PolarsError>
Replace None values with one of the following strategies: Read more
pub fn fill_none(
&self,
_strategy: FillNoneStrategy
) -> Result<ChunkedArray<CategoricalType>, PolarsError>
pub fn fill_none(
&self,
_strategy: FillNoneStrategy
) -> Result<ChunkedArray<CategoricalType>, PolarsError>
Replace None values with one of the following strategies: Read more
pub fn fill_none(
&self,
_strategy: FillNoneStrategy
) -> Result<ChunkedArray<ListType>, PolarsError>
pub fn fill_none(
&self,
_strategy: FillNoneStrategy
) -> Result<ChunkedArray<ListType>, PolarsError>
Replace None values with one of the following strategies: Read more
pub fn fill_none(
&self,
strategy: FillNoneStrategy
) -> Result<ChunkedArray<BooleanType>, PolarsError>
pub fn fill_none(
&self,
strategy: FillNoneStrategy
) -> Result<ChunkedArray<BooleanType>, PolarsError>
Replace None values with one of the following strategies: Read more
impl<T> ChunkFillNone for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: PartialOrd<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Num,
<T as ArrowPrimitiveType>::Native: NumCast,
<T as ArrowPrimitiveType>::Native: Zero,
<T as ArrowPrimitiveType>::Native: One,
<T as ArrowPrimitiveType>::Native: Bounded,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
impl<T> ChunkFillNone for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: PartialOrd<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Num,
<T as ArrowPrimitiveType>::Native: NumCast,
<T as ArrowPrimitiveType>::Native: Zero,
<T as ArrowPrimitiveType>::Native: One,
<T as ArrowPrimitiveType>::Native: Bounded,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
Replace None values with one of the following strategies: Read more
pub fn fill_none(
&self,
_strategy: FillNoneStrategy
) -> Result<ChunkedArray<ObjectType<T>>, PolarsError>
pub fn fill_none(
&self,
_strategy: FillNoneStrategy
) -> Result<ChunkedArray<ObjectType<T>>, PolarsError>
Replace None values with one of the following strategies: Read more
pub fn fill_none_with_value(
&self,
_value: &Series
) -> Result<ChunkedArray<ListType>, PolarsError>
pub fn fill_none_with_value(
&self,
_value: &Series
) -> Result<ChunkedArray<ListType>, PolarsError>
Replace None values with a give value T
.
pub fn fill_none_with_value(
&self,
value: &str
) -> Result<ChunkedArray<Utf8Type>, PolarsError>
pub fn fill_none_with_value(
&self,
value: &str
) -> Result<ChunkedArray<Utf8Type>, PolarsError>
Replace None values with a give value T
.
impl<T> ChunkFillNoneValue<<T as ArrowPrimitiveType>::Native> for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: PartialOrd<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Num,
<T as ArrowPrimitiveType>::Native: NumCast,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
impl<T> ChunkFillNoneValue<<T as ArrowPrimitiveType>::Native> for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: PartialOrd<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Num,
<T as ArrowPrimitiveType>::Native: NumCast,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
pub fn fill_none_with_value(
&self,
value: <T as ArrowPrimitiveType>::Native
) -> Result<ChunkedArray<T>, PolarsError>
pub fn fill_none_with_value(
&self,
value: <T as ArrowPrimitiveType>::Native
) -> Result<ChunkedArray<T>, PolarsError>
Replace None values with a give value T
.
pub fn fill_none_with_value(
&self,
_value: ObjectType<T>
) -> Result<ChunkedArray<ObjectType<T>>, PolarsError>
pub fn fill_none_with_value(
&self,
_value: ObjectType<T>
) -> Result<ChunkedArray<ObjectType<T>>, PolarsError>
Replace None values with a give value T
.
pub fn fill_none_with_value(
&self,
value: bool
) -> Result<ChunkedArray<BooleanType>, PolarsError>
pub fn fill_none_with_value(
&self,
value: bool
) -> Result<ChunkedArray<BooleanType>, PolarsError>
Replace None values with a give value T
.
pub fn filter(
&self,
filter: &ChunkedArray<BooleanType>
) -> Result<ChunkedArray<BooleanType>, PolarsError>
pub fn filter(
&self,
filter: &ChunkedArray<BooleanType>
) -> Result<ChunkedArray<BooleanType>, PolarsError>
Filter values in the ChunkedArray with a boolean mask. Read more
pub fn filter(
&self,
filter: &ChunkedArray<BooleanType>
) -> Result<ChunkedArray<CategoricalType>, PolarsError> where
ChunkedArray<CategoricalType>: Sized,
pub fn filter(
&self,
filter: &ChunkedArray<BooleanType>
) -> Result<ChunkedArray<CategoricalType>, PolarsError> where
ChunkedArray<CategoricalType>: Sized,
Filter values in the ChunkedArray with a boolean mask. Read more
pub fn filter(
&self,
filter: &ChunkedArray<BooleanType>
) -> Result<ChunkedArray<ListType>, PolarsError>
pub fn filter(
&self,
filter: &ChunkedArray<BooleanType>
) -> Result<ChunkedArray<ListType>, PolarsError>
Filter values in the ChunkedArray with a boolean mask. Read more
pub fn filter(
&self,
filter: &ChunkedArray<BooleanType>
) -> Result<ChunkedArray<ObjectType<T>>, PolarsError> where
ChunkedArray<ObjectType<T>>: Sized,
pub fn filter(
&self,
filter: &ChunkedArray<BooleanType>
) -> Result<ChunkedArray<ObjectType<T>>, PolarsError> where
ChunkedArray<ObjectType<T>>: Sized,
Filter values in the ChunkedArray with a boolean mask. Read more
pub fn filter(
&self,
filter: &ChunkedArray<BooleanType>
) -> Result<ChunkedArray<T>, PolarsError>
pub fn filter(
&self,
filter: &ChunkedArray<BooleanType>
) -> Result<ChunkedArray<T>, PolarsError>
Filter values in the ChunkedArray with a boolean mask. Read more
pub fn filter(
&self,
filter: &ChunkedArray<BooleanType>
) -> Result<ChunkedArray<Utf8Type>, PolarsError>
pub fn filter(
&self,
filter: &ChunkedArray<BooleanType>
) -> Result<ChunkedArray<Utf8Type>, PolarsError>
Filter values in the ChunkedArray with a boolean mask. Read more
impl<T> ChunkFull<<T as ArrowPrimitiveType>::Native> for ChunkedArray<T> where
T: PolarsPrimitiveType,
impl<T> ChunkFull<<T as ArrowPrimitiveType>::Native> for ChunkedArray<T> where
T: PolarsPrimitiveType,
pub fn full(
name: &str,
value: <T as ArrowPrimitiveType>::Native,
length: usize
) -> ChunkedArray<T> where
<T as ArrowPrimitiveType>::Native: Copy,
pub fn full(
name: &str,
value: <T as ArrowPrimitiveType>::Native,
length: usize
) -> ChunkedArray<T> where
<T as ArrowPrimitiveType>::Native: Copy,
Create a ChunkedArray with a single value.
Create a ChunkedArray with a single value.
Aggregate to contiguous memory.
pub fn rechunk(&self) -> ChunkedArray<CategoricalType> where
ChunkedArray<CategoricalType>: Sized,
pub fn rechunk(&self) -> ChunkedArray<CategoricalType> where
ChunkedArray<CategoricalType>: Sized,
Aggregate to contiguous memory.
Aggregate to contiguous memory.
Aggregate to contiguous memory.
Aggregate to contiguous memory.
Aggregate to contiguous memory.
impl<T> ChunkPeaks for ChunkedArray<ObjectType<T>> where
T: 'static + Debug + Clone + Send + Sync + Default,
impl<T> ChunkPeaks for ChunkedArray<ObjectType<T>> where
T: 'static + Debug + Clone + Send + Sync + Default,
Get a boolean mask of the local maximum peaks.
Get a boolean mask of the local minimum peaks.
Get a boolean mask of the local maximum peaks.
Get a boolean mask of the local minimum peaks.
Get a boolean mask of the local maximum peaks.
Get a boolean mask of the local minimum peaks.
Get a boolean mask of the local maximum peaks.
Get a boolean mask of the local minimum peaks.
Get a boolean mask of the local maximum peaks.
Get a boolean mask of the local minimum peaks.
impl<T> ChunkPeaks for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: NumComp,
<T as ArrowPrimitiveType>::Native: Zero,
impl<T> ChunkPeaks for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: NumComp,
<T as ArrowPrimitiveType>::Native: Zero,
Get a boolean mask of the local maximum peaks.
Get a boolean mask of the local minimum peaks.
Return a reversed version of this array.
Return a reversed version of this array.
Return a reversed version of this array.
Return a reversed version of this array.
impl<T> ChunkReverse<T> for ChunkedArray<T> where
T: PolarsNumericType,
ChunkedArray<T>: ChunkOps,
impl<T> ChunkReverse<T> for ChunkedArray<T> where
T: PolarsNumericType,
ChunkedArray<T>: ChunkOps,
Return a reversed version of this array.
Return a reversed version of this array.
pub fn set_at_idx<I>(
&'a self,
idx: I,
opt_value: Option<&'a str>
) -> Result<ChunkedArray<Utf8Type>, PolarsError> where
I: IntoIterator<Item = usize>,
ChunkedArray<Utf8Type>: Sized,
pub fn set_at_idx<I>(
&'a self,
idx: I,
opt_value: Option<&'a str>
) -> Result<ChunkedArray<Utf8Type>, PolarsError> where
I: IntoIterator<Item = usize>,
ChunkedArray<Utf8Type>: Sized,
Set the values at indexes idx
to some optional value Option<T>
. Read more
pub fn set_at_idx_with<I, F>(
&'a self,
idx: I,
f: F
) -> Result<ChunkedArray<Utf8Type>, PolarsError> where
F: Fn(Option<&'a str>) -> Option<String>,
I: IntoIterator<Item = usize>,
ChunkedArray<Utf8Type>: Sized,
pub fn set_at_idx_with<I, F>(
&'a self,
idx: I,
f: F
) -> Result<ChunkedArray<Utf8Type>, PolarsError> where
F: Fn(Option<&'a str>) -> Option<String>,
I: IntoIterator<Item = usize>,
ChunkedArray<Utf8Type>: Sized,
Set the values at indexes idx
by applying a closure to these values. Read more
pub fn set(
&'a self,
mask: &ChunkedArray<BooleanType>,
value: Option<&'a str>
) -> Result<ChunkedArray<Utf8Type>, PolarsError> where
ChunkedArray<Utf8Type>: Sized,
pub fn set(
&'a self,
mask: &ChunkedArray<BooleanType>,
value: Option<&'a str>
) -> Result<ChunkedArray<Utf8Type>, PolarsError> where
ChunkedArray<Utf8Type>: Sized,
Set the values where the mask evaluates to true
to some optional value Option<T>
. Read more
pub fn set_with<F>(
&'a self,
mask: &ChunkedArray<BooleanType>,
f: F
) -> Result<ChunkedArray<Utf8Type>, PolarsError> where
F: Fn(Option<&'a str>) -> Option<String>,
ChunkedArray<Utf8Type>: Sized,
pub fn set_with<F>(
&'a self,
mask: &ChunkedArray<BooleanType>,
f: F
) -> Result<ChunkedArray<Utf8Type>, PolarsError> where
F: Fn(Option<&'a str>) -> Option<String>,
ChunkedArray<Utf8Type>: Sized,
Set the values where the mask evaluates to true
by applying a closure to these values. Read more
impl<'a, T> ChunkSet<'a, <T as ArrowPrimitiveType>::Native, <T as ArrowPrimitiveType>::Native> for ChunkedArray<T> where
T: PolarsNumericType,
impl<'a, T> ChunkSet<'a, <T as ArrowPrimitiveType>::Native, <T as ArrowPrimitiveType>::Native> for ChunkedArray<T> where
T: PolarsNumericType,
pub fn set_at_idx<I>(
&'a self,
idx: I,
value: Option<<T as ArrowPrimitiveType>::Native>
) -> Result<ChunkedArray<T>, PolarsError> where
I: IntoIterator<Item = usize>,
pub fn set_at_idx<I>(
&'a self,
idx: I,
value: Option<<T as ArrowPrimitiveType>::Native>
) -> Result<ChunkedArray<T>, PolarsError> where
I: IntoIterator<Item = usize>,
Set the values at indexes idx
to some optional value Option<T>
. Read more
pub fn set_at_idx_with<I, F>(
&'a self,
idx: I,
f: F
) -> Result<ChunkedArray<T>, PolarsError> where
F: Fn(Option<<T as ArrowPrimitiveType>::Native>) -> Option<<T as ArrowPrimitiveType>::Native>,
I: IntoIterator<Item = usize>,
pub fn set_at_idx_with<I, F>(
&'a self,
idx: I,
f: F
) -> Result<ChunkedArray<T>, PolarsError> where
F: Fn(Option<<T as ArrowPrimitiveType>::Native>) -> Option<<T as ArrowPrimitiveType>::Native>,
I: IntoIterator<Item = usize>,
Set the values at indexes idx
by applying a closure to these values. Read more
pub fn set(
&'a self,
mask: &ChunkedArray<BooleanType>,
value: Option<<T as ArrowPrimitiveType>::Native>
) -> Result<ChunkedArray<T>, PolarsError>
pub fn set(
&'a self,
mask: &ChunkedArray<BooleanType>,
value: Option<<T as ArrowPrimitiveType>::Native>
) -> Result<ChunkedArray<T>, PolarsError>
Set the values where the mask evaluates to true
to some optional value Option<T>
. Read more
pub fn set_with<F>(
&'a self,
mask: &ChunkedArray<BooleanType>,
f: F
) -> Result<ChunkedArray<T>, PolarsError> where
F: Fn(Option<<T as ArrowPrimitiveType>::Native>) -> Option<<T as ArrowPrimitiveType>::Native>,
pub fn set_with<F>(
&'a self,
mask: &ChunkedArray<BooleanType>,
f: F
) -> Result<ChunkedArray<T>, PolarsError> where
F: Fn(Option<<T as ArrowPrimitiveType>::Native>) -> Option<<T as ArrowPrimitiveType>::Native>,
Set the values where the mask evaluates to true
by applying a closure to these values. Read more
pub fn set_at_idx<I>(
&'a self,
idx: I,
value: Option<bool>
) -> Result<ChunkedArray<BooleanType>, PolarsError> where
I: IntoIterator<Item = usize>,
pub fn set_at_idx<I>(
&'a self,
idx: I,
value: Option<bool>
) -> Result<ChunkedArray<BooleanType>, PolarsError> where
I: IntoIterator<Item = usize>,
Set the values at indexes idx
to some optional value Option<T>
. Read more
pub fn set_at_idx_with<I, F>(
&'a self,
idx: I,
f: F
) -> Result<ChunkedArray<BooleanType>, PolarsError> where
F: Fn(Option<bool>) -> Option<bool>,
I: IntoIterator<Item = usize>,
pub fn set_at_idx_with<I, F>(
&'a self,
idx: I,
f: F
) -> Result<ChunkedArray<BooleanType>, PolarsError> where
F: Fn(Option<bool>) -> Option<bool>,
I: IntoIterator<Item = usize>,
Set the values at indexes idx
by applying a closure to these values. Read more
pub fn set(
&'a self,
mask: &ChunkedArray<BooleanType>,
value: Option<bool>
) -> Result<ChunkedArray<BooleanType>, PolarsError>
pub 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
pub fn set_with<F>(
&'a self,
mask: &ChunkedArray<BooleanType>,
f: F
) -> Result<ChunkedArray<BooleanType>, PolarsError> where
F: Fn(Option<bool>) -> Option<bool>,
pub fn set_with<F>(
&'a self,
mask: &ChunkedArray<BooleanType>,
f: F
) -> Result<ChunkedArray<BooleanType>, PolarsError> where
F: Fn(Option<bool>) -> Option<bool>,
Set the values where the mask evaluates to true
by applying a closure to these values. Read more
impl<T> ChunkShift<T> for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Copy,
impl<T> ChunkShift<T> for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Copy,
pub fn shift_and_fill(
&self,
periods: i64,
fill_value: Option<bool>
) -> ChunkedArray<BooleanType>
pub 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
. Read more
pub fn shift_and_fill(
&self,
periods: i64,
fill_value: Option<&Series>
) -> ChunkedArray<ListType>
pub 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
. Read more
pub fn shift_and_fill(
&self,
_periods: i64,
_fill_value: Option<ObjectType<T>>
) -> ChunkedArray<ObjectType<T>>
pub 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
. Read more
impl<T> ChunkShiftFill<T, Option<<T as ArrowPrimitiveType>::Native>> for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Copy,
impl<T> ChunkShiftFill<T, Option<<T as ArrowPrimitiveType>::Native>> for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Copy,
pub fn shift_and_fill(
&self,
periods: i64,
fill_value: Option<<T as ArrowPrimitiveType>::Native>
) -> ChunkedArray<T>
pub fn shift_and_fill(
&self,
periods: i64,
fill_value: Option<<T as ArrowPrimitiveType>::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
. Read more
pub fn shift_and_fill(
&self,
periods: i64,
fill_value: Option<&str>
) -> ChunkedArray<Utf8Type>
pub fn shift_and_fill(
&self,
periods: i64,
fill_value: Option<&str>
) -> ChunkedArray<Utf8Type>
Shift the values by a given period and fill the parts that will be empty due to this operation
with fill_value
. Read more
Returned a sorted ChunkedArray
.
Sort this array in place.
Retrieve the indexes needed to sort this array.
fn argsort_multiple(
&self,
_other: &[Series],
_reverse: &[bool]
) -> Result<ChunkedArray<UInt32Type>, PolarsError>
fn argsort_multiple(
&self,
_other: &[Series],
_reverse: &[bool]
) -> Result<ChunkedArray<UInt32Type>, PolarsError>
Retrieve the indexes need to sort this and the other arrays.
Returned a sorted ChunkedArray
.
Sort this array in place.
Retrieve the indexes needed to sort this array.
fn argsort_multiple(
&self,
_other: &[Series],
_reverse: &[bool]
) -> Result<ChunkedArray<UInt32Type>, PolarsError>
fn argsort_multiple(
&self,
_other: &[Series],
_reverse: &[bool]
) -> Result<ChunkedArray<UInt32Type>, PolarsError>
Retrieve the indexes need to sort this and the other arrays.
Returned a sorted ChunkedArray
.
Sort this array in place.
Retrieve the indexes needed to sort this array.
fn argsort_multiple(
&self,
_other: &[Series],
_reverse: &[bool]
) -> Result<ChunkedArray<UInt32Type>, PolarsError>
fn argsort_multiple(
&self,
_other: &[Series],
_reverse: &[bool]
) -> Result<ChunkedArray<UInt32Type>, PolarsError>
Retrieve the indexes need to sort this and the other arrays.
Returned a sorted ChunkedArray
.
Sort this array in place.
Retrieve the indexes needed to sort this array.
fn argsort_multiple(
&self,
_other: &[Series],
_reverse: &[bool]
) -> Result<ChunkedArray<UInt32Type>, PolarsError>
fn argsort_multiple(
&self,
_other: &[Series],
_reverse: &[bool]
) -> Result<ChunkedArray<UInt32Type>, PolarsError>
Retrieve the indexes need to sort this and the other arrays.
impl<T> ChunkSort<T> for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: PartialOrd<<T as ArrowPrimitiveType>::Native>,
impl<T> ChunkSort<T> for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: PartialOrd<<T as ArrowPrimitiveType>::Native>,
pub fn argsort_multiple(
&self,
other: &[Series],
reverse: &[bool]
) -> Result<ChunkedArray<UInt32Type>, PolarsError>
pub fn argsort_multiple(
&self,
other: &[Series],
reverse: &[bool]
) -> 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
Returned a sorted ChunkedArray
.
Sort this array in place.
Retrieve the indexes needed to sort this array.
pub fn argsort_multiple(
&self,
other: &[Series],
reverse: &[bool]
) -> Result<ChunkedArray<UInt32Type>, PolarsError>
pub fn argsort_multiple(
&self,
other: &[Series],
reverse: &[bool]
) -> 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.
Returned a sorted ChunkedArray
.
Sort this array in place.
Retrieve the indexes needed to sort this array.
pub unsafe fn take_unchecked<I, INulls>(
&self,
indices: TakeIdx<'_, I, INulls>
) -> ChunkedArray<ObjectType<T>> where
I: Iterator<Item = usize>,
INulls: Iterator<Item = Option<usize>>,
ChunkedArray<ObjectType<T>>: Sized,
pub unsafe fn take_unchecked<I, INulls>(
&self,
indices: TakeIdx<'_, I, INulls>
) -> ChunkedArray<ObjectType<T>> where
I: Iterator<Item = usize>,
INulls: Iterator<Item = Option<usize>>,
ChunkedArray<ObjectType<T>>: Sized,
Take values from ChunkedArray by index. Read more
pub fn take<I, INulls>(
&self,
indices: TakeIdx<'_, I, INulls>
) -> ChunkedArray<ObjectType<T>> where
I: Iterator<Item = usize>,
INulls: Iterator<Item = Option<usize>>,
ChunkedArray<ObjectType<T>>: Sized,
pub fn take<I, INulls>(
&self,
indices: TakeIdx<'_, I, INulls>
) -> ChunkedArray<ObjectType<T>> where
I: Iterator<Item = usize>,
INulls: Iterator<Item = Option<usize>>,
ChunkedArray<ObjectType<T>>: Sized,
Take values from ChunkedArray by index.
pub unsafe fn take_unchecked<I, INulls>(
&self,
indices: TakeIdx<'_, I, INulls>
) -> ChunkedArray<CategoricalType> where
I: Iterator<Item = usize>,
INulls: Iterator<Item = Option<usize>>,
ChunkedArray<CategoricalType>: Sized,
pub unsafe fn take_unchecked<I, INulls>(
&self,
indices: TakeIdx<'_, I, INulls>
) -> ChunkedArray<CategoricalType> where
I: Iterator<Item = usize>,
INulls: Iterator<Item = Option<usize>>,
ChunkedArray<CategoricalType>: Sized,
Take values from ChunkedArray by index. Read more
pub fn take<I, INulls>(
&self,
indices: TakeIdx<'_, I, INulls>
) -> ChunkedArray<CategoricalType> where
I: Iterator<Item = usize>,
INulls: Iterator<Item = Option<usize>>,
ChunkedArray<CategoricalType>: Sized,
pub fn take<I, INulls>(
&self,
indices: TakeIdx<'_, I, INulls>
) -> ChunkedArray<CategoricalType> where
I: Iterator<Item = usize>,
INulls: Iterator<Item = Option<usize>>,
ChunkedArray<CategoricalType>: Sized,
Take values from ChunkedArray by index.
pub unsafe fn take_unchecked<I, INulls>(
&self,
indices: TakeIdx<'_, I, INulls>
) -> ChunkedArray<T> where
I: Iterator<Item = usize>,
INulls: Iterator<Item = Option<usize>>,
ChunkedArray<T>: Sized,
pub unsafe fn take_unchecked<I, INulls>(
&self,
indices: TakeIdx<'_, I, INulls>
) -> ChunkedArray<T> where
I: Iterator<Item = usize>,
INulls: Iterator<Item = Option<usize>>,
ChunkedArray<T>: Sized,
Take values from ChunkedArray by index. Read more
pub unsafe fn take_unchecked<I, INulls>(
&self,
indices: TakeIdx<'_, I, INulls>
) -> ChunkedArray<BooleanType> where
I: Iterator<Item = usize>,
INulls: Iterator<Item = Option<usize>>,
ChunkedArray<BooleanType>: Sized,
pub unsafe fn take_unchecked<I, INulls>(
&self,
indices: TakeIdx<'_, I, INulls>
) -> ChunkedArray<BooleanType> where
I: Iterator<Item = usize>,
INulls: Iterator<Item = Option<usize>>,
ChunkedArray<BooleanType>: Sized,
Take values from ChunkedArray by index. Read more
pub fn take<I, INulls>(
&self,
indices: TakeIdx<'_, I, INulls>
) -> ChunkedArray<BooleanType> where
I: Iterator<Item = usize>,
INulls: Iterator<Item = Option<usize>>,
ChunkedArray<BooleanType>: Sized,
pub fn take<I, INulls>(
&self,
indices: TakeIdx<'_, I, INulls>
) -> ChunkedArray<BooleanType> where
I: Iterator<Item = usize>,
INulls: Iterator<Item = Option<usize>>,
ChunkedArray<BooleanType>: Sized,
Take values from ChunkedArray by index.
pub unsafe fn take_unchecked<I, INulls>(
&self,
indices: TakeIdx<'_, I, INulls>
) -> ChunkedArray<Utf8Type> where
I: Iterator<Item = usize>,
INulls: Iterator<Item = Option<usize>>,
ChunkedArray<Utf8Type>: Sized,
pub unsafe fn take_unchecked<I, INulls>(
&self,
indices: TakeIdx<'_, I, INulls>
) -> ChunkedArray<Utf8Type> where
I: Iterator<Item = usize>,
INulls: Iterator<Item = Option<usize>>,
ChunkedArray<Utf8Type>: Sized,
Take values from ChunkedArray by index. Read more
pub unsafe fn take_unchecked<I, INulls>(
&self,
indices: TakeIdx<'_, I, INulls>
) -> ChunkedArray<ListType> where
I: Iterator<Item = usize>,
INulls: Iterator<Item = Option<usize>>,
ChunkedArray<ListType>: Sized,
pub unsafe fn take_unchecked<I, INulls>(
&self,
indices: TakeIdx<'_, I, INulls>
) -> ChunkedArray<ListType> where
I: Iterator<Item = usize>,
INulls: Iterator<Item = Option<usize>>,
ChunkedArray<ListType>: Sized,
Take values from ChunkedArray by index. Read more
Traverse and collect every nth element in a new array.
Traverse and collect every nth element in a new array.
Traverse and collect every nth element in a new array.
Traverse and collect every nth element in a new array.
Traverse and collect every nth element in a new array.
Traverse and collect every nth element in a new array.
Get unique values of a ChunkedArray
Get first index of the unique values in a ChunkedArray
.
This Vec is sorted. Read more
Get a mask of all the unique values.
Get a mask of all the duplicated values.
Number of unique values in the ChunkedArray
Count the unique values.
Get unique values of a ChunkedArray
Get first index of the unique values in a ChunkedArray
.
This Vec is sorted. Read more
Get a mask of all the unique values.
Get a mask of all the duplicated values.
Count the unique values.
Number of unique values in the ChunkedArray
Get unique values of a ChunkedArray
Get first index of the unique values in a ChunkedArray
.
This Vec is sorted. Read more
Get a mask of all the unique values.
Get a mask of all the duplicated values.
Count the unique values.
Number of unique values in the ChunkedArray
Get unique values of a ChunkedArray
Get first index of the unique values in a ChunkedArray
.
This Vec is sorted. Read more
Get a mask of all the unique values.
Get a mask of all the duplicated values.
Count the unique values.
Number of unique values in the ChunkedArray
Get unique values of a ChunkedArray
Get first index of the unique values in a ChunkedArray
.
This Vec is sorted. Read more
Number of unique values in the ChunkedArray
Get a mask of all the unique values.
Get a mask of all the duplicated values.
Count the unique values.
Get unique values of a ChunkedArray
Get first index of the unique values in a ChunkedArray
.
This Vec is sorted. Read more
Number of unique values in the ChunkedArray
Get a mask of all the unique values.
Get a mask of all the duplicated values.
Count the unique values.
impl<T> ChunkUnique<T> for ChunkedArray<T> where
T: PolarsIntegerType,
<T as ArrowPrimitiveType>::Native: Hash,
<T as ArrowPrimitiveType>::Native: Eq,
<T as ArrowPrimitiveType>::Native: NumCast,
ChunkedArray<T>: ChunkOps,
ChunkedArray<T>: IntoSeries,
impl<T> ChunkUnique<T> for ChunkedArray<T> where
T: PolarsIntegerType,
<T as ArrowPrimitiveType>::Native: Hash,
<T as ArrowPrimitiveType>::Native: Eq,
<T as ArrowPrimitiveType>::Native: NumCast,
ChunkedArray<T>: ChunkOps,
ChunkedArray<T>: IntoSeries,
Get unique values of a ChunkedArray
Get first index of the unique values in a ChunkedArray
.
This Vec is sorted. Read more
Get a mask of all the unique values.
Get a mask of all the duplicated values.
Count the unique values.
Number of unique values in the ChunkedArray
Get unique values of a ChunkedArray
Get first index of the unique values in a ChunkedArray
.
This Vec is sorted. Read more
Get a mask of all the unique values.
Get a mask of all the duplicated values.
Count the unique values.
Number of unique values in the ChunkedArray
impl<T> ChunkVar<f64> for ChunkedArray<T> where
T: PolarsIntegerType,
<T as ArrowPrimitiveType>::Native: PartialOrd<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Num,
<T as ArrowPrimitiveType>::Native: NumCast,
impl<T> ChunkVar<f64> for ChunkedArray<T> where
T: PolarsIntegerType,
<T as ArrowPrimitiveType>::Native: PartialOrd<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Num,
<T as ArrowPrimitiveType>::Native: NumCast,
apply a rolling sum (moving sum) over the values in this array.
a window of length window_size
will traverse the array. the values that fill this window
will (optionally) be multiplied with the weights given by the weight
vector. the resulting
values will be aggregated to their sum. Read more
Apply a rolling mean (moving mean) over the values in this array.
A window of length window_size
will traverse the array. The values that fill this window
will (optionally) be multiplied with the weights given by the weight
vector. The resulting
values will be aggregated to their mean. Read more
Apply a rolling min (moving min) over the values in this array.
A window of length window_size
will traverse the array. The values that fill this window
will (optionally) be multiplied with the weights given by the weight
vector. The resulting
values will be aggregated to their min. Read more
Apply a rolling max (moving max) over the values in this array.
A window of length window_size
will traverse the array. The values that fill this window
will (optionally) be multiplied with the weights given by the weight
vector. The resulting
values will be aggregated to their max. Read more
impl<T> ChunkWindow for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Mul<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Rem<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Zero,
<T as ArrowPrimitiveType>::Native: Bounded,
<T as ArrowPrimitiveType>::Native: NumCast,
<T as ArrowPrimitiveType>::Native: PartialOrd<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: One,
<T as ArrowPrimitiveType>::Native: Copy,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Mul<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Rem<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
impl<T> ChunkWindow for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Mul<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Rem<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Zero,
<T as ArrowPrimitiveType>::Native: Bounded,
<T as ArrowPrimitiveType>::Native: NumCast,
<T as ArrowPrimitiveType>::Native: PartialOrd<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: One,
<T as ArrowPrimitiveType>::Native: Copy,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Mul<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Rem<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
pub fn rolling_sum(
&self,
window_size: u32,
weight: Option<&[f64]>,
ignore_null: bool,
min_periods: u32
) -> Result<ChunkedArray<T>, PolarsError>
pub fn rolling_sum(
&self,
window_size: u32,
weight: Option<&[f64]>,
ignore_null: bool,
min_periods: u32
) -> Result<ChunkedArray<T>, PolarsError>
apply a rolling sum (moving sum) over the values in this array.
a window of length window_size
will traverse the array. the values that fill this window
will (optionally) be multiplied with the weights given by the weight
vector. the resulting
values will be aggregated to their sum. Read more
pub fn rolling_mean(
&self,
window_size: u32,
weight: Option<&[f64]>,
ignore_null: bool,
min_periods: u32
) -> Result<ChunkedArray<T>, PolarsError>
pub fn rolling_mean(
&self,
window_size: u32,
weight: Option<&[f64]>,
ignore_null: bool,
min_periods: u32
) -> Result<ChunkedArray<T>, PolarsError>
Apply a rolling mean (moving mean) over the values in this array.
A window of length window_size
will traverse the array. The values that fill this window
will (optionally) be multiplied with the weights given by the weight
vector. The resulting
values will be aggregated to their mean. Read more
pub fn rolling_min(
&self,
window_size: u32,
weight: Option<&[f64]>,
ignore_null: bool,
min_periods: u32
) -> Result<ChunkedArray<T>, PolarsError>
pub fn rolling_min(
&self,
window_size: u32,
weight: Option<&[f64]>,
ignore_null: bool,
min_periods: u32
) -> Result<ChunkedArray<T>, PolarsError>
Apply a rolling min (moving min) over the values in this array.
A window of length window_size
will traverse the array. The values that fill this window
will (optionally) be multiplied with the weights given by the weight
vector. The resulting
values will be aggregated to their min. Read more
pub fn rolling_max(
&self,
window_size: u32,
weight: Option<&[f64]>,
ignore_null: bool,
min_periods: u32
) -> Result<ChunkedArray<T>, PolarsError>
pub fn rolling_max(
&self,
window_size: u32,
weight: Option<&[f64]>,
ignore_null: bool,
min_periods: u32
) -> Result<ChunkedArray<T>, PolarsError>
Apply a rolling max (moving max) over the values in this array.
A window of length window_size
will traverse the array. The values that fill this window
will (optionally) be multiplied with the weights given by the weight
vector. The resulting
values will be aggregated to their max. Read more
apply a rolling sum (moving sum) over the values in this array.
a window of length window_size
will traverse the array. the values that fill this window
will (optionally) be multiplied with the weights given by the weight
vector. the resulting
values will be aggregated to their sum. Read more
Apply a rolling mean (moving mean) over the values in this array.
A window of length window_size
will traverse the array. The values that fill this window
will (optionally) be multiplied with the weights given by the weight
vector. The resulting
values will be aggregated to their mean. Read more
Apply a rolling min (moving min) over the values in this array.
A window of length window_size
will traverse the array. The values that fill this window
will (optionally) be multiplied with the weights given by the weight
vector. The resulting
values will be aggregated to their min. Read more
Apply a rolling max (moving max) over the values in this array.
A window of length window_size
will traverse the array. The values that fill this window
will (optionally) be multiplied with the weights given by the weight
vector. The resulting
values will be aggregated to their max. Read more
apply a rolling sum (moving sum) over the values in this array.
a window of length window_size
will traverse the array. the values that fill this window
will (optionally) be multiplied with the weights given by the weight
vector. the resulting
values will be aggregated to their sum. Read more
Apply a rolling mean (moving mean) over the values in this array.
A window of length window_size
will traverse the array. The values that fill this window
will (optionally) be multiplied with the weights given by the weight
vector. The resulting
values will be aggregated to their mean. Read more
Apply a rolling min (moving min) over the values in this array.
A window of length window_size
will traverse the array. The values that fill this window
will (optionally) be multiplied with the weights given by the weight
vector. The resulting
values will be aggregated to their min. Read more
Apply a rolling max (moving max) over the values in this array.
A window of length window_size
will traverse the array. The values that fill this window
will (optionally) be multiplied with the weights given by the weight
vector. The resulting
values will be aggregated to their max. Read more
apply a rolling sum (moving sum) over the values in this array.
a window of length window_size
will traverse the array. the values that fill this window
will (optionally) be multiplied with the weights given by the weight
vector. the resulting
values will be aggregated to their sum. Read more
Apply a rolling mean (moving mean) over the values in this array.
A window of length window_size
will traverse the array. The values that fill this window
will (optionally) be multiplied with the weights given by the weight
vector. The resulting
values will be aggregated to their mean. Read more
Apply a rolling min (moving min) over the values in this array.
A window of length window_size
will traverse the array. The values that fill this window
will (optionally) be multiplied with the weights given by the weight
vector. The resulting
values will be aggregated to their min. Read more
Apply a rolling max (moving max) over the values in this array.
A window of length window_size
will traverse the array. The values that fill this window
will (optionally) be multiplied with the weights given by the weight
vector. The resulting
values will be aggregated to their max. Read more
apply a rolling sum (moving sum) over the values in this array.
a window of length window_size
will traverse the array. the values that fill this window
will (optionally) be multiplied with the weights given by the weight
vector. the resulting
values will be aggregated to their sum. Read more
Apply a rolling mean (moving mean) over the values in this array.
A window of length window_size
will traverse the array. The values that fill this window
will (optionally) be multiplied with the weights given by the weight
vector. The resulting
values will be aggregated to their mean. Read more
Apply a rolling min (moving min) over the values in this array.
A window of length window_size
will traverse the array. The values that fill this window
will (optionally) be multiplied with the weights given by the weight
vector. The resulting
values will be aggregated to their min. Read more
Apply a rolling max (moving max) over the values in this array.
A window of length window_size
will traverse the array. The values that fill this window
will (optionally) be multiplied with the weights given by the weight
vector. The resulting
values will be aggregated to their max. Read more
impl<T> ChunkWindowCustom<<T as ArrowPrimitiveType>::Native> for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Zero,
<T as ArrowPrimitiveType>::Native: Bounded,
<T as ArrowPrimitiveType>::Native: NumCast,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Mul<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: PartialOrd<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: One,
<T as ArrowPrimitiveType>::Native: Copy,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Mul<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
impl<T> ChunkWindowCustom<<T as ArrowPrimitiveType>::Native> for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Zero,
<T as ArrowPrimitiveType>::Native: Bounded,
<T as ArrowPrimitiveType>::Native: NumCast,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Mul<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: PartialOrd<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: One,
<T as ArrowPrimitiveType>::Native: Copy,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Mul<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
pub fn rolling_custom<F>(
&self,
window_size: u32,
weight: Option<&[f64]>,
fold_fn: F,
init_fold: InitFold,
min_periods: u32
) -> Result<ChunkedArray<T>, PolarsError> where
F: Fn(Option<<T as ArrowPrimitiveType>::Native>, Option<<T as ArrowPrimitiveType>::Native>) -> Option<<T as ArrowPrimitiveType>::Native> + Copy,
pub fn rolling_custom<F>(
&self,
window_size: u32,
weight: Option<&[f64]>,
fold_fn: F,
init_fold: InitFold,
min_periods: u32
) -> Result<ChunkedArray<T>, PolarsError> where
F: Fn(Option<<T as ArrowPrimitiveType>::Native>, Option<<T as ArrowPrimitiveType>::Native>) -> Option<<T as ArrowPrimitiveType>::Native> + Copy,
Apply a rolling aggregation over the values in this array. Read more
pub fn zip_with(
&self,
mask: &ChunkedArray<BooleanType>,
other: &ChunkedArray<BooleanType>
) -> Result<ChunkedArray<BooleanType>, PolarsError>
pub fn zip_with(
&self,
mask: &ChunkedArray<BooleanType>,
other: &ChunkedArray<BooleanType>
) -> Result<ChunkedArray<BooleanType>, PolarsError>
Create a new ChunkedArray with values from self where the mask evaluates true
and values
from other
where the mask evaluates false
Read more
pub fn zip_with(
&self,
mask: &ChunkedArray<BooleanType>,
other: &ChunkedArray<CategoricalType>
) -> Result<ChunkedArray<CategoricalType>, PolarsError>
pub fn zip_with(
&self,
mask: &ChunkedArray<BooleanType>,
other: &ChunkedArray<CategoricalType>
) -> Result<ChunkedArray<CategoricalType>, PolarsError>
Create a new ChunkedArray with values from self where the mask evaluates true
and values
from other
where the mask evaluates false
Read more
pub fn zip_with(
&self,
mask: &ChunkedArray<BooleanType>,
other: &ChunkedArray<ListType>
) -> Result<ChunkedArray<ListType>, PolarsError>
pub fn zip_with(
&self,
mask: &ChunkedArray<BooleanType>,
other: &ChunkedArray<ListType>
) -> Result<ChunkedArray<ListType>, PolarsError>
Create a new ChunkedArray with values from self where the mask evaluates true
and values
from other
where the mask evaluates false
Read more
pub fn zip_with(
&self,
mask: &ChunkedArray<BooleanType>,
other: &ChunkedArray<ObjectType<T>>
) -> Result<ChunkedArray<ObjectType<T>>, PolarsError>
pub fn zip_with(
&self,
mask: &ChunkedArray<BooleanType>,
other: &ChunkedArray<ObjectType<T>>
) -> Result<ChunkedArray<ObjectType<T>>, PolarsError>
Create a new ChunkedArray with values from self where the mask evaluates true
and values
from other
where the mask evaluates false
Read more
pub fn zip_with(
&self,
mask: &ChunkedArray<BooleanType>,
other: &ChunkedArray<T>
) -> Result<ChunkedArray<T>, PolarsError>
pub 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
Read more
pub fn zip_with(
&self,
mask: &ChunkedArray<BooleanType>,
other: &ChunkedArray<Utf8Type>
) -> Result<ChunkedArray<Utf8Type>, PolarsError>
pub fn zip_with(
&self,
mask: &ChunkedArray<BooleanType>,
other: &ChunkedArray<Utf8Type>
) -> Result<ChunkedArray<Utf8Type>, PolarsError>
Create a new ChunkedArray with values from self where the mask evaluates true
and values
from other
where the mask evaluates false
Read more
Returns the “default value” for a type. Read more
type Target = ChunkedArray<UInt32Type>
type Target = ChunkedArray<UInt32Type>
The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
impl<'_, T> Div<&'_ ChunkedArray<T>> for &'_ ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Mul<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Rem<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Zero,
<T as ArrowPrimitiveType>::Native: One,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Mul<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Rem<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
impl<'_, T> Div<&'_ ChunkedArray<T>> for &'_ ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Mul<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Rem<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Zero,
<T as ArrowPrimitiveType>::Native: One,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Mul<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Rem<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
type Output = ChunkedArray<T>
type Output = ChunkedArray<T>
The resulting type after applying the /
operator.
pub fn div(
self,
rhs: &'_ ChunkedArray<T>
) -> <&'_ ChunkedArray<T> as Div<&'_ ChunkedArray<T>>>::Output
pub fn div(
self,
rhs: &'_ ChunkedArray<T>
) -> <&'_ ChunkedArray<T> as Div<&'_ ChunkedArray<T>>>::Output
Performs the /
operation. Read more
impl<T> Div<ChunkedArray<T>> for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Mul<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Rem<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Zero,
<T as ArrowPrimitiveType>::Native: One,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Mul<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Rem<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
impl<T> Div<ChunkedArray<T>> for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Mul<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Rem<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Zero,
<T as ArrowPrimitiveType>::Native: One,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Mul<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Rem<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
type Output = ChunkedArray<T>
type Output = ChunkedArray<T>
The resulting type after applying the /
operator.
Performs the /
operation. Read more
impl<'_, T, N> Div<N> for &'_ ChunkedArray<T> where
N: Num + ToPrimitive,
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: NumCast,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: One,
<T as ArrowPrimitiveType>::Native: Zero,
<T as ArrowPrimitiveType>::Native: Rem<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Rem<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
impl<'_, T, N> Div<N> for &'_ ChunkedArray<T> where
N: Num + ToPrimitive,
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: NumCast,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: One,
<T as ArrowPrimitiveType>::Native: Zero,
<T as ArrowPrimitiveType>::Native: Rem<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Rem<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
type Output = ChunkedArray<T>
type Output = ChunkedArray<T>
The resulting type after applying the /
operator.
impl<T, N> Div<N> for ChunkedArray<T> where
N: Num + ToPrimitive,
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: NumCast,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: One,
<T as ArrowPrimitiveType>::Native: Zero,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Rem<<T as ArrowPrimitiveType>::Native>,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Rem<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
impl<T, N> Div<N> for ChunkedArray<T> where
N: Num + ToPrimitive,
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: NumCast,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: One,
<T as ArrowPrimitiveType>::Native: Zero,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Rem<<T as ArrowPrimitiveType>::Native>,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Rem<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
type Output = ChunkedArray<T>
type Output = ChunkedArray<T>
The resulting type after applying the /
operator.
pub fn from(
ca: &'a ChunkedArray<UInt32Type>
) -> TakeIdx<'a, Once<usize>, Once<Option<usize>>>
pub fn from(
ca: &'a ChunkedArray<UInt32Type>
) -> TakeIdx<'a, Once<usize>, Once<Option<usize>>>
Performs the conversion.
Performs the conversion.
Performs the conversion.
impl<T> FromIterator<(AlignedVec<<T as ArrowPrimitiveType>::Native>, Option<Buffer>)> for ChunkedArray<T> where
T: PolarsNumericType,
impl<T> FromIterator<(AlignedVec<<T as ArrowPrimitiveType>::Native>, Option<Buffer>)> for ChunkedArray<T> where
T: PolarsNumericType,
pub fn from_iter<I>(iter: I) -> ChunkedArray<T> where
I: IntoIterator<Item = (AlignedVec<<T as ArrowPrimitiveType>::Native>, Option<Buffer>)>,
pub fn from_iter<I>(iter: I) -> ChunkedArray<T> where
I: IntoIterator<Item = (AlignedVec<<T as ArrowPrimitiveType>::Native>, Option<Buffer>)>,
Creates a value from an iterator. Read more
impl<T> FromIterator<Option<<T as ArrowPrimitiveType>::Native>> for ChunkedArray<T> where
T: PolarsPrimitiveType,
impl<T> FromIterator<Option<<T as ArrowPrimitiveType>::Native>> for ChunkedArray<T> where
T: PolarsPrimitiveType,
FromIterator trait
pub fn from_iter<I>(iter: I) -> ChunkedArray<T> where
I: IntoIterator<Item = Option<<T as ArrowPrimitiveType>::Native>>,
pub fn from_iter<I>(iter: I) -> ChunkedArray<T> where
I: IntoIterator<Item = Option<<T as ArrowPrimitiveType>::Native>>,
Creates a value from an iterator. Read more
pub fn from_iter<I>(iter: I) -> ChunkedArray<Utf8Type> where
I: IntoIterator<Item = Option<Ptr>>,
pub fn from_iter<I>(iter: I) -> ChunkedArray<Utf8Type> where
I: IntoIterator<Item = Option<Ptr>>,
Creates a value from an iterator. Read more
pub fn from_iter<I>(iter: I) -> ChunkedArray<ListType> where
I: IntoIterator<Item = Option<Ptr>>,
pub fn from_iter<I>(iter: I) -> ChunkedArray<ListType> where
I: IntoIterator<Item = Option<Ptr>>,
Creates a value from an iterator. Read more
pub fn from_iter<I>(iter: I) -> ChunkedArray<ObjectType<T>> where
I: IntoIterator<Item = Option<T>>,
pub fn from_iter<I>(iter: I) -> ChunkedArray<ObjectType<T>> where
I: IntoIterator<Item = Option<T>>,
Creates a value from an iterator. Read more
pub fn from_iter<I>(iter: I) -> ChunkedArray<BooleanType> where
I: IntoIterator<Item = Option<bool>>,
pub fn from_iter<I>(iter: I) -> ChunkedArray<BooleanType> where
I: IntoIterator<Item = Option<bool>>,
Creates a value from an iterator. Read more
Creates a value from an iterator. Read more
Creates a value from an iterator. Read more
Creates a value from an iterator. Read more
pub fn parse_from_str_slice(
name: &str,
v: &[&str],
fmt: &str
) -> ChunkedArray<Time64NanosecondType>
impl<T> FromParallelIterator<Option<<T as ArrowPrimitiveType>::Native>> for ChunkedArray<T> where
T: PolarsPrimitiveType,
impl<T> FromParallelIterator<Option<<T as ArrowPrimitiveType>::Native>> for ChunkedArray<T> where
T: PolarsPrimitiveType,
pub fn from_par_iter<I>(iter: I) -> ChunkedArray<T> where
I: IntoParallelIterator<Item = Option<<T as ArrowPrimitiveType>::Native>>,
pub fn from_par_iter<I>(iter: I) -> ChunkedArray<T> where
I: IntoParallelIterator<Item = Option<<T as ArrowPrimitiveType>::Native>>,
Creates an instance of the collection from the parallel iterator par_iter
. Read more
impl<Ptr> FromParallelIterator<Option<Ptr>> for ChunkedArray<Utf8Type> where
Ptr: AsRef<str> + Send + Sync,
impl<Ptr> FromParallelIterator<Option<Ptr>> for ChunkedArray<Utf8Type> where
Ptr: AsRef<str> + Send + Sync,
pub fn from_par_iter<I>(iter: I) -> ChunkedArray<Utf8Type> where
I: IntoParallelIterator<Item = Option<Ptr>>,
pub fn from_par_iter<I>(iter: I) -> ChunkedArray<Utf8Type> where
I: IntoParallelIterator<Item = Option<Ptr>>,
Creates an instance of the collection from the parallel iterator par_iter
. Read more
impl<Ptr> FromParallelIterator<Ptr> for ChunkedArray<Utf8Type> where
Ptr: PolarsAsRef<str> + Send + Sync,
impl<Ptr> FromParallelIterator<Ptr> for ChunkedArray<Utf8Type> where
Ptr: PolarsAsRef<str> + Send + Sync,
pub fn from_par_iter<I>(iter: I) -> ChunkedArray<Utf8Type> where
I: IntoParallelIterator<Item = Ptr>,
pub fn from_par_iter<I>(iter: I) -> ChunkedArray<Utf8Type> where
I: IntoParallelIterator<Item = Ptr>,
Creates an instance of the collection from the parallel iterator par_iter
. Read more
pub fn from_par_iter<I>(iter: I) -> ChunkedArray<BooleanType> where
I: IntoParallelIterator<Item = bool>,
pub 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
impl<T> FromTrustedLenIterator<Option<<T as ArrowPrimitiveType>::Native>> for ChunkedArray<T> where
T: PolarsPrimitiveType,
impl<T> FromTrustedLenIterator<Option<<T as ArrowPrimitiveType>::Native>> for ChunkedArray<T> where
T: PolarsPrimitiveType,
pub fn from_iter_trusted_length<I>(iter: I) -> ChunkedArray<T> where
I: IntoIterator<Item = Option<<T as ArrowPrimitiveType>::Native>>,
pub fn from_iter_trusted_length<I>(iter: I) -> ChunkedArray<ListType> where
I: IntoIterator<Item = Option<Ptr>>,
pub fn from_iter_trusted_length<I>(iter: I) -> ChunkedArray<Utf8Type> where
I: IntoIterator<Item = Option<Ptr>>,
impl<T> FromTrustedLenIterator<Option<T>> for ChunkedArray<ObjectType<T>> where
T: PolarsObject,
impl<T> FromTrustedLenIterator<Option<T>> for ChunkedArray<ObjectType<T>> where
T: PolarsObject,
pub fn from_iter_trusted_length<I>(iter: I) -> ChunkedArray<ObjectType<T>> where
I: IntoIterator<Item = Option<T>>,
pub fn from_iter_trusted_length<I>(iter: I) -> ChunkedArray<BooleanType> where
I: IntoIterator<Item = Option<bool>>,
<I as IntoIterator>::IntoIter: TrustedLen,
pub fn from_iter_trusted_length<I>(iter: I) -> ChunkedArray<ListType> where
I: IntoIterator<Item = Ptr>,
pub fn from_iter_trusted_length<I>(iter: I) -> ChunkedArray<Utf8Type> where
I: IntoIterator<Item = Ptr>,
pub fn from_iter_trusted_length<I>(iter: I) -> ChunkedArray<BooleanType> where
I: IntoIterator<Item = bool>,
<I as IntoIterator>::IntoIter: TrustedLen,
Create the tuples need for a groupby operation. * The first value in the tuple is the first index of the group. * The second value in the tuple is are the indexes of the groups including the first value. Read more
Create the tuples need for a groupby operation. * The first value in the tuple is the first index of the group. * The second value in the tuple is are the indexes of the groups including the first value. Read more
Create the tuples need for a groupby operation. * The first value in the tuple is the first index of the group. * The second value in the tuple is are the indexes of the groups including the first value. Read more
Create the tuples need for a groupby operation. * The first value in the tuple is the first index of the group. * The second value in the tuple is are the indexes of the groups including the first value. Read more
Create the tuples need for a groupby operation. * The first value in the tuple is the first index of the group. * The second value in the tuple is are the indexes of the groups including the first value. Read more
impl<T> IntoGroupTuples for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: NumCast,
impl<T> IntoGroupTuples for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: NumCast,
Create the tuples need for a groupby operation. * The first value in the tuple is the first index of the group. * The second value in the tuple is are the indexes of the groups including the first value. Read more
type IntoIter = Box<dyn PolarsIterator<Item = <&'a ChunkedArray<ListType> as IntoIterator>::Item> + 'a, Global>
type IntoIter = Box<dyn PolarsIterator<Item = <&'a ChunkedArray<ListType> as IntoIterator>::Item> + 'a, Global>
Which kind of iterator are we turning this into?
Creates an iterator from a value. Read more
type IntoIter = Box<dyn PolarsIterator<Item = <&'a ChunkedArray<CategoricalType> as IntoIterator>::Item> + 'a, Global>
type IntoIter = Box<dyn PolarsIterator<Item = <&'a ChunkedArray<CategoricalType> as IntoIterator>::Item> + 'a, Global>
Which kind of iterator are we turning this into?
Creates an iterator from a value. Read more
type IntoIter = Box<dyn PolarsIterator<Item = <&'a ChunkedArray<Utf8Type> as IntoIterator>::Item> + 'a, Global>
type IntoIter = Box<dyn PolarsIterator<Item = <&'a ChunkedArray<Utf8Type> as IntoIterator>::Item> + 'a, Global>
Which kind of iterator are we turning this into?
Creates an iterator from a value. Read more
type IntoIter = Box<dyn PolarsIterator<Item = <&'a ChunkedArray<ObjectType<T>> as IntoIterator>::Item> + 'a, Global>
type IntoIter = Box<dyn PolarsIterator<Item = <&'a ChunkedArray<ObjectType<T>> as IntoIterator>::Item> + 'a, Global>
Which kind of iterator are we turning this into?
Creates an iterator from a value. Read more
type Item = Option<<T as ArrowPrimitiveType>::Native>
type Item = Option<<T as ArrowPrimitiveType>::Native>
The type of the elements being iterated over.
type IntoIter = Box<dyn PolarsIterator<Item = <&'a ChunkedArray<T> as IntoIterator>::Item> + 'a, Global>
type IntoIter = Box<dyn PolarsIterator<Item = <&'a ChunkedArray<T> as IntoIterator>::Item> + 'a, Global>
Which kind of iterator are we turning this into?
Creates an iterator from a value. Read more
type IntoIter = Box<dyn PolarsIterator<Item = <&'a ChunkedArray<BooleanType> as IntoIterator>::Item> + 'a, Global>
type IntoIter = Box<dyn PolarsIterator<Item = <&'a ChunkedArray<BooleanType> as IntoIterator>::Item> + 'a, Global>
Which kind of iterator are we turning this into?
Creates an iterator from a value. Read more
type TakeRandom = TakeRandBranch2<ObjectTakeRandomSingleChunk<'a, T>, ObjectTakeRandom<'a, T>>
pub fn take_rand(
&self
) -> <&'a ChunkedArray<ObjectType<T>> as IntoTakeRandom<'a>>::TakeRandom
pub fn take_rand(
&self
) -> <&'a ChunkedArray<ObjectType<T>> as IntoTakeRandom<'a>>::TakeRandom
Create a type that implements TakeRandom
.
type TakeRandom = TakeRandBranch2<Utf8TakeRandomSingleChunk<'a>, Utf8TakeRandom<'a>>
Create a type that implements TakeRandom
.
type Item = <T as ArrowPrimitiveType>::Native
type TakeRandom = TakeRandBranch3<NumTakeRandomCont<'a, <T as ArrowPrimitiveType>::Native>, NumTakeRandomSingleChunk<'a, T>, NumTakeRandomChunked<'a, T>>
Create a type that implements TakeRandom
.
type TakeRandom = TakeRandBranch2<BoolTakeRandomSingleChunk<'a>, BoolTakeRandom<'a>>
Create a type that implements TakeRandom
.
type TakeRandom = TakeRandBranch2<ListTakeRandomSingleChunk<'a>, ListTakeRandom<'a>>
Create a type that implements TakeRandom
.
impl<T> IsFirst<T> for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: NumCast,
impl<T> IsFirst<T> for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: NumCast,
Check if elements of this array are in the right Series, or List values of the right Series.
Check if elements of this array are in the right Series, or List values of the right Series.
Check if elements of this array are in the right Series, or List values of the right Series.
Check if elements of this array are in the right Series, or List values of the right Series.
impl<T> IsIn for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: NumCast,
<T as ArrowPrimitiveType>::Native: Copy,
impl<T> IsIn for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: NumCast,
<T as ArrowPrimitiveType>::Native: Copy,
Check if elements of this array are in the right Series, or List values of the right Series.
impl<'_, T> Mul<&'_ ChunkedArray<T>> for &'_ ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Mul<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Rem<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Zero,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Mul<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Rem<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
impl<'_, T> Mul<&'_ ChunkedArray<T>> for &'_ ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Mul<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Rem<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Zero,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Mul<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Rem<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
type Output = ChunkedArray<T>
type Output = ChunkedArray<T>
The resulting type after applying the *
operator.
pub fn mul(
self,
rhs: &'_ ChunkedArray<T>
) -> <&'_ ChunkedArray<T> as Mul<&'_ ChunkedArray<T>>>::Output
pub fn mul(
self,
rhs: &'_ ChunkedArray<T>
) -> <&'_ ChunkedArray<T> as Mul<&'_ ChunkedArray<T>>>::Output
Performs the *
operation. Read more
impl<T> Mul<ChunkedArray<T>> for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Mul<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Rem<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Zero,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Mul<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Rem<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
impl<T> Mul<ChunkedArray<T>> for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Mul<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Rem<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Zero,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Mul<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Rem<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
type Output = ChunkedArray<T>
type Output = ChunkedArray<T>
The resulting type after applying the *
operator.
Performs the *
operation. Read more
impl<T, N> Mul<N> for ChunkedArray<T> where
N: Num + ToPrimitive,
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: NumCast,
<T as ArrowPrimitiveType>::Native: Mul<<T as ArrowPrimitiveType>::Native>,
<<T as ArrowPrimitiveType>::Native as Mul<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
impl<T, N> Mul<N> for ChunkedArray<T> where
N: Num + ToPrimitive,
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: NumCast,
<T as ArrowPrimitiveType>::Native: Mul<<T as ArrowPrimitiveType>::Native>,
<<T as ArrowPrimitiveType>::Native as Mul<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
type Output = ChunkedArray<T>
type Output = ChunkedArray<T>
The resulting type after applying the *
operator.
impl<'_, T, N> Mul<N> for &'_ ChunkedArray<T> where
N: Num + ToPrimitive,
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: NumCast,
<T as ArrowPrimitiveType>::Native: Mul<<T as ArrowPrimitiveType>::Native>,
<<T as ArrowPrimitiveType>::Native as Mul<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
impl<'_, T, N> Mul<N> for &'_ ChunkedArray<T> where
N: Num + ToPrimitive,
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: NumCast,
<T as ArrowPrimitiveType>::Native: Mul<<T as ArrowPrimitiveType>::Native>,
<<T as ArrowPrimitiveType>::Native as Mul<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
type Output = ChunkedArray<T>
type Output = ChunkedArray<T>
The resulting type after applying the *
operator.
Create a new ChunkedArray from an iterator.
pub fn new_from_opt_iter(
name: &str,
it: impl Iterator<Item = Option<bool>>
) -> ChunkedArray<BooleanType>
pub fn new_from_opt_iter(
name: &str,
it: impl Iterator<Item = Option<bool>>
) -> ChunkedArray<BooleanType>
Create a new ChunkedArray from an iterator.
impl<T> NewChunkedArray<ObjectType<T>, T> for ChunkedArray<ObjectType<T>> where
T: PolarsObject,
impl<T> NewChunkedArray<ObjectType<T>, T> for ChunkedArray<ObjectType<T>> where
T: PolarsObject,
Create a new ChunkedArray from an iterator.
pub fn new_from_opt_iter(
name: &str,
it: impl Iterator<Item = Option<T>>
) -> ChunkedArray<ObjectType<T>>
pub fn new_from_opt_iter(
name: &str,
it: impl Iterator<Item = Option<T>>
) -> ChunkedArray<ObjectType<T>>
Create a new ChunkedArray from an iterator.
impl<T> NewChunkedArray<T, <T as ArrowPrimitiveType>::Native> for ChunkedArray<T> where
T: PolarsPrimitiveType,
impl<T> NewChunkedArray<T, <T as ArrowPrimitiveType>::Native> for ChunkedArray<T> where
T: PolarsPrimitiveType,
pub fn new_from_iter(
name: &str,
it: impl Iterator<Item = <T as ArrowPrimitiveType>::Native>
) -> ChunkedArray<T>
pub fn new_from_iter(
name: &str,
it: impl Iterator<Item = <T as ArrowPrimitiveType>::Native>
) -> ChunkedArray<T>
Create a new ChunkedArray from an iterator.
pub fn new_from_opt_slice(
name: &str,
opt_v: &[Option<<T as ArrowPrimitiveType>::Native>]
) -> ChunkedArray<T>
pub fn new_from_opt_iter(
name: &str,
it: impl Iterator<Item = Option<<T as ArrowPrimitiveType>::Native>>
) -> ChunkedArray<T>
pub fn new_from_opt_iter(
name: &str,
it: impl Iterator<Item = Option<<T as ArrowPrimitiveType>::Native>>
) -> ChunkedArray<T>
Create a new ChunkedArray from an iterator.
Create a new ChunkedArray from an iterator.
pub fn new_from_opt_iter(
name: &str,
it: impl Iterator<Item = Option<S>>
) -> ChunkedArray<Utf8Type>
pub fn new_from_opt_iter(
name: &str,
it: impl Iterator<Item = Option<S>>
) -> ChunkedArray<Utf8Type>
Create a new ChunkedArray from an iterator.
type Output = ChunkedArray<BooleanType>
type Output = ChunkedArray<BooleanType>
The resulting type after applying the !
operator.
Performs the unary !
operation. Read more
type Output = ChunkedArray<BooleanType>
type Output = ChunkedArray<BooleanType>
The resulting type after applying the !
operator.
Performs the unary !
operation. Read more
impl<T> NumOpsDispatch for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Mul<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Rem<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Zero,
<T as ArrowPrimitiveType>::Native: One,
ChunkedArray<T>: IntoSeries,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Mul<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Rem<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
impl<T> NumOpsDispatch for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Mul<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Rem<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Zero,
<T as ArrowPrimitiveType>::Native: One,
ChunkedArray<T>: IntoSeries,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Mul<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Rem<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
impl<T> NumOpsDispatchChecked for ChunkedArray<T> where
T: PolarsIntegerType,
<T as ArrowPrimitiveType>::Native: CheckedDiv,
<T as ArrowPrimitiveType>::Native: CheckedDiv,
<T as ArrowPrimitiveType>::Native: Zero,
<T as ArrowPrimitiveType>::Native: One,
ChunkedArray<T>: IntoSeries,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
impl<T> NumOpsDispatchChecked for ChunkedArray<T> where
T: PolarsIntegerType,
<T as ArrowPrimitiveType>::Native: CheckedDiv,
<T as ArrowPrimitiveType>::Native: CheckedDiv,
<T as ArrowPrimitiveType>::Native: Zero,
<T as ArrowPrimitiveType>::Native: One,
ChunkedArray<T>: IntoSeries,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
Checked integer division. Computes self / rhs, returning None if rhs == 0 or the division results in overflow.
Checked integer division. Computes self / rhs, returning None if rhs == 0 or the division results in overflow.
Checked integer division. Computes self / rhs, returning None if rhs == 0 or the division results in overflow.
Checked integer division. Computes self / rhs, returning None if rhs == 0 or the division results in overflow.
Checked integer division. Computes self / rhs, returning None if rhs == 0 or the division results in overflow.
Checked integer division. Computes self / rhs, returning None if rhs == 0 or the division results in overflow.
Checked integer division. Computes self / rhs, returning None if rhs == 0 or the division results in overflow.
impl<'_, T> Rem<&'_ ChunkedArray<T>> for &'_ ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Mul<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Rem<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Zero,
<T as ArrowPrimitiveType>::Native: One,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Mul<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Rem<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
impl<'_, T> Rem<&'_ ChunkedArray<T>> for &'_ ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Mul<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Rem<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Zero,
<T as ArrowPrimitiveType>::Native: One,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Mul<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Rem<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
type Output = ChunkedArray<T>
type Output = ChunkedArray<T>
The resulting type after applying the %
operator.
pub fn rem(
self,
rhs: &'_ ChunkedArray<T>
) -> <&'_ ChunkedArray<T> as Rem<&'_ ChunkedArray<T>>>::Output
pub fn rem(
self,
rhs: &'_ ChunkedArray<T>
) -> <&'_ ChunkedArray<T> as Rem<&'_ ChunkedArray<T>>>::Output
Performs the %
operation. Read more
impl<T> Rem<ChunkedArray<T>> for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Mul<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Rem<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Zero,
<T as ArrowPrimitiveType>::Native: One,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Mul<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Rem<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
impl<T> Rem<ChunkedArray<T>> for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Mul<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Rem<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Zero,
<T as ArrowPrimitiveType>::Native: One,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Mul<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Rem<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
type Output = ChunkedArray<T>
type Output = ChunkedArray<T>
The resulting type after applying the %
operator.
Performs the %
operation. Read more
impl<T, N> Rem<N> for ChunkedArray<T> where
N: Num + ToPrimitive,
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: NumCast,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: One,
<T as ArrowPrimitiveType>::Native: Zero,
<T as ArrowPrimitiveType>::Native: Rem<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Rem<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
impl<T, N> Rem<N> for ChunkedArray<T> where
N: Num + ToPrimitive,
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: NumCast,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: One,
<T as ArrowPrimitiveType>::Native: Zero,
<T as ArrowPrimitiveType>::Native: Rem<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Rem<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
type Output = ChunkedArray<T>
type Output = ChunkedArray<T>
The resulting type after applying the %
operator.
impl<'_, T, N> Rem<N> for &'_ ChunkedArray<T> where
N: Num + ToPrimitive,
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: NumCast,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: One,
<T as ArrowPrimitiveType>::Native: Zero,
<T as ArrowPrimitiveType>::Native: Rem<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Rem<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
impl<'_, T, N> Rem<N> for &'_ ChunkedArray<T> where
N: Num + ToPrimitive,
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: NumCast,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: One,
<T as ArrowPrimitiveType>::Native: Zero,
<T as ArrowPrimitiveType>::Native: Rem<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Rem<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
type Output = ChunkedArray<T>
type Output = ChunkedArray<T>
The resulting type after applying the %
operator.
Repeat the values n
times, where n
is determined by the values in by
.
Repeat the values n
times, where n
is determined by the values in by
.
Repeat the values n
times, where n
is determined by the values in by
.
Repeat the values n
times, where n
is determined by the values in by
.
Repeat the values n
times, where n
is determined by the values in by
.
Repeat the values n
times, where n
is determined by the values in by
.
impl<'_, T> Sub<&'_ ChunkedArray<T>> for &'_ ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Mul<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Rem<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Zero,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Mul<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Rem<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
impl<'_, T> Sub<&'_ ChunkedArray<T>> for &'_ ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Mul<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Rem<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Zero,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Mul<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Rem<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
type Output = ChunkedArray<T>
type Output = ChunkedArray<T>
The resulting type after applying the -
operator.
pub fn sub(
self,
rhs: &'_ ChunkedArray<T>
) -> <&'_ ChunkedArray<T> as Sub<&'_ ChunkedArray<T>>>::Output
pub fn sub(
self,
rhs: &'_ ChunkedArray<T>
) -> <&'_ ChunkedArray<T> as Sub<&'_ ChunkedArray<T>>>::Output
Performs the -
operation. Read more
impl<T> Sub<ChunkedArray<T>> for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Mul<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Rem<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Zero,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Mul<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Rem<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
impl<T> Sub<ChunkedArray<T>> for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Mul<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Rem<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Zero,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Mul<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Rem<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
type Output = ChunkedArray<T>
type Output = ChunkedArray<T>
The resulting type after applying the -
operator.
Performs the -
operation. Read more
impl<T, N> Sub<N> for ChunkedArray<T> where
N: Num + ToPrimitive,
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: NumCast,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
impl<T, N> Sub<N> for ChunkedArray<T> where
N: Num + ToPrimitive,
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: NumCast,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
type Output = ChunkedArray<T>
type Output = ChunkedArray<T>
The resulting type after applying the -
operator.
impl<'_, T, N> Sub<N> for &'_ ChunkedArray<T> where
N: Num + ToPrimitive,
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: NumCast,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
impl<'_, T, N> Sub<N> for &'_ ChunkedArray<T> where
N: Num + ToPrimitive,
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: NumCast,
<T as ArrowPrimitiveType>::Native: Sub<<T as ArrowPrimitiveType>::Native>,
<<T as ArrowPrimitiveType>::Native as Sub<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
type Output = ChunkedArray<T>
type Output = ChunkedArray<T>
The resulting type after applying the -
operator.
pub fn get(
&self,
index: usize
) -> Option<<ChunkedArray<CategoricalType> as TakeRandom>::Item>
pub fn get(
&self,
index: usize
) -> Option<<ChunkedArray<CategoricalType> as TakeRandom>::Item>
Get a nullable value by index. Read more
pub unsafe fn get_unchecked(
&self,
index: usize
) -> <ChunkedArray<CategoricalType> as TakeRandom>::Item
pub unsafe fn get_unchecked(
&self,
index: usize
) -> <ChunkedArray<CategoricalType> as TakeRandom>::Item
Get a value by index and ignore the null bit. Read more
type Item = <T as ArrowPrimitiveType>::Native
Get a nullable value by index. Read more
Get a value by index and ignore the null bit. Read more
type Item = <T as ArrowPrimitiveType>::Native
Get a nullable value by index. Read more
Get a value by index and ignore the null bit. Read more
Get a nullable value by index. Read more
pub unsafe fn get_unchecked(
&self,
index: usize
) -> <ChunkedArray<ListType> as TakeRandom>::Item
pub unsafe fn get_unchecked(
&self,
index: usize
) -> <ChunkedArray<ListType> as TakeRandom>::Item
Get a value by index and ignore the null bit. Read more
pub fn get(
&self,
index: usize
) -> Option<<&'a ChunkedArray<ObjectType<T>> as TakeRandom>::Item>
pub fn get(
&self,
index: usize
) -> Option<<&'a ChunkedArray<ObjectType<T>> as TakeRandom>::Item>
Get a nullable value by index. Read more
pub unsafe fn get_unchecked(
&self,
index: usize
) -> <&'a ChunkedArray<ObjectType<T>> as TakeRandom>::Item
pub unsafe fn get_unchecked(
&self,
index: usize
) -> <&'a ChunkedArray<ObjectType<T>> as TakeRandom>::Item
Get a value by index and ignore the null bit. Read more
Get a nullable value by index. Read more
pub unsafe fn get_unchecked(
&self,
index: usize
) -> <ChunkedArray<BooleanType> as TakeRandom>::Item
pub unsafe fn get_unchecked(
&self,
index: usize
) -> <ChunkedArray<BooleanType> as TakeRandom>::Item
Get a value by index and ignore the null bit. Read more
Get a nullable value by index. Read more
pub unsafe fn get_unchecked(
&self,
index: usize
) -> <&'a ChunkedArray<Utf8Type> as TakeRandom>::Item
pub unsafe fn get_unchecked(
&self,
index: usize
) -> <&'a ChunkedArray<Utf8Type> as TakeRandom>::Item
Get a value by index and ignore the null bit. Read more
pub fn get(
self,
index: usize
) -> Option<<&'a ChunkedArray<Utf8Type> as TakeRandomUtf8>::Item>
pub fn get(
self,
index: usize
) -> Option<<&'a ChunkedArray<Utf8Type> as TakeRandomUtf8>::Item>
Get a nullable value by index. Read more
pub unsafe fn get_unchecked(
self,
index: usize
) -> <&'a ChunkedArray<Utf8Type> as TakeRandomUtf8>::Item
pub unsafe fn get_unchecked(
self,
index: usize
) -> <&'a ChunkedArray<Utf8Type> as TakeRandomUtf8>::Item
Get a value by index and ignore the null bit. Read more
impl<T> ToDummies<T> for ChunkedArray<T> where
T: PolarsIntegerType + Sync,
<T as ArrowPrimitiveType>::Native: Hash,
<T as ArrowPrimitiveType>::Native: Eq,
<T as ArrowPrimitiveType>::Native: Display,
<T as ArrowPrimitiveType>::Native: NumCast,
ChunkedArray<T>: ChunkOps,
ChunkedArray<T>: ChunkCompare<<T as ArrowPrimitiveType>::Native>,
ChunkedArray<T>: ChunkUnique<T>,
impl<T> ToDummies<T> for ChunkedArray<T> where
T: PolarsIntegerType + Sync,
<T as ArrowPrimitiveType>::Native: Hash,
<T as ArrowPrimitiveType>::Native: Eq,
<T as ArrowPrimitiveType>::Native: Display,
<T as ArrowPrimitiveType>::Native: NumCast,
ChunkedArray<T>: ChunkOps,
ChunkedArray<T>: ChunkCompare<<T as ArrowPrimitiveType>::Native>,
ChunkedArray<T>: ChunkUnique<T>,
Useful for a Utf8 or a List to get underlying value size. During a rechunk this is handy Read more
Useful for a Utf8 or a List to get underlying value size. During a rechunk this is handy Read more
Get the variance of the ChunkedArray as a new Series of length 1.
Get the standard deviation of the ChunkedArray as a new Series of length 1.
Get the variance of the ChunkedArray as a new Series of length 1.
Get the standard deviation of the ChunkedArray as a new Series of length 1.
impl<T> VarAggSeries for ChunkedArray<T> where
T: PolarsIntegerType,
<T as ArrowPrimitiveType>::Native: PartialOrd<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Num,
<T as ArrowPrimitiveType>::Native: NumCast,
impl<T> VarAggSeries for ChunkedArray<T> where
T: PolarsIntegerType,
<T as ArrowPrimitiveType>::Native: PartialOrd<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Num,
<T as ArrowPrimitiveType>::Native: NumCast,
Get the variance of the ChunkedArray as a new Series of length 1.
Get the standard deviation of the ChunkedArray as a new Series of length 1.
Get the variance of the ChunkedArray as a new Series of length 1.
Get the standard deviation of the ChunkedArray as a new Series of length 1.
Get the variance of the ChunkedArray as a new Series of length 1.
Get the standard deviation of the ChunkedArray as a new Series of length 1.
Get the variance of the ChunkedArray as a new Series of length 1.
Get the standard deviation of the ChunkedArray as a new Series of length 1.
Get the variance of the ChunkedArray as a new Series of length 1.
Get the standard deviation of the ChunkedArray as a new Series of length 1.
Get the variance of the ChunkedArray as a new Series of length 1.
Get the standard deviation of the ChunkedArray as a new Series of length 1.
Compute the hash for all values in the array. Read more
Compute the hash for all values in the array. Read more
impl<T> VecHash for ChunkedArray<T> where
T: PolarsIntegerType,
<T as ArrowPrimitiveType>::Native: Hash,
impl<T> VecHash for ChunkedArray<T> where
T: PolarsIntegerType,
<T as ArrowPrimitiveType>::Native: Hash,
Compute the hash for all values in the array. Read more
Compute the hash for all values in the array. Read more
Compute the hash for all values in the array. Read more
Compute the hash for all values in the array. Read more
impl<T> ZipOuterJoinColumn for ChunkedArray<T> where
T: PolarsIntegerType,
ChunkedArray<T>: IntoSeries,
impl<T> ZipOuterJoinColumn for ChunkedArray<T> where
T: PolarsIntegerType,
ChunkedArray<T>: IntoSeries,
Auto Trait Implementations
impl<T> !RefUnwindSafe for ChunkedArray<T>
impl<T> Send for ChunkedArray<T> where
T: Send,
impl<T> Sync for ChunkedArray<T> where
T: Sync,
impl<T> Unpin for ChunkedArray<T> where
T: Unpin,
impl<T> !UnwindSafe for ChunkedArray<T>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V