Trait polars::chunked_array::object::NewChunkedArray
source · [−]pub trait NewChunkedArray<T, N> {
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
fn from_slice(name: &str, v: &[N]) -> Self
fn from_slice_options(name: &str, opt_v: &[Option<N>]) -> Self
sourcefn from_iter_options(name: &str, it: impl Iterator<Item = Option<N>>) -> Self
fn from_iter_options(name: &str, it: impl Iterator<Item = Option<N>>) -> Self
Create a new ChunkedArray from an iterator.
sourcefn from_iter_values(name: &str, it: impl Iterator<Item = N>) -> Self
fn from_iter_values(name: &str, it: impl Iterator<Item = N>) -> Self
Create a new ChunkedArray from an iterator.