pub trait NewChunkedArray<T, N> {
    // Required methods
    fn from_slice(name: &str, v: &[N]) -> Self;
    fn from_slice_options(name: &str, opt_v: &[Option<N>]) -> Self;
    fn from_iter_options(name: &str, it: impl Iterator<Item = Option<N>>) -> Self;
    fn from_iter_values(name: &str, it: impl Iterator<Item = N>) -> Self;
}

Required Methods§

source

fn from_slice(name: &str, v: &[N]) -> Self

source

fn from_slice_options(name: &str, opt_v: &[Option<N>]) -> Self

source

fn from_iter_options(name: &str, it: impl Iterator<Item = Option<N>>) -> Self

Create a new ChunkedArray from an iterator.

source

fn from_iter_values(name: &str, it: impl Iterator<Item = N>) -> Self

Create a new ChunkedArray from an iterator.

Implementors§

source§

impl NewChunkedArray<BooleanType, bool> for BooleanChunked

source§

impl<S> NewChunkedArray<Utf8Type, S> for Utf8Chunkedwhere S: AsRef<str>,

source§

impl<T> NewChunkedArray<ObjectType<T>, T> for ObjectChunked<T>where T: PolarsObject,

Available on crate feature object only.
source§

impl<T> NewChunkedArray<T, <T as PolarsNumericType>::Native> for ChunkedArray<T>where T: PolarsNumericType,