Trait polars::prelude::ChunkedSet

source ·
pub trait ChunkedSet<T>
where T: Copy,
{ // Required method fn scatter<V>(self, idx: &[u32], values: V) -> Result<Series, PolarsError> where V: IntoIterator<Item = Option<T>>; }
Available on crate feature polars-ops only.

Required Methods§

source

fn scatter<V>(self, idx: &[u32], values: V) -> Result<Series, PolarsError>
where V: IntoIterator<Item = Option<T>>,

Invariant for implementations: if the scatter() fails, typically because of bad indexes, then self should remain unmodified.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl ChunkedSet<bool> for &ChunkedArray<BooleanType>

source§

impl<'a> ChunkedSet<&'a str> for &'a ChunkedArray<StringType>

source§

impl<T> ChunkedSet<<T as PolarsNumericType>::Native> for &mut ChunkedArray<T>
where T: PolarsOpsNumericType, ChunkedArray<T>: IntoSeries,