Trait polars_core::chunked_array::ops::ChunkTake
source · pub trait ChunkTake {
unsafe fn take_unchecked<I, INulls>(
&self,
indices: TakeIdx<'_, I, INulls>
) -> Self
where
Self: Sized,
I: TakeIterator,
INulls: TakeIteratorNulls;
fn take<I, INulls>(
&self,
indices: TakeIdx<'_, I, INulls>
) -> PolarsResult<Self>
where
Self: Sized,
I: TakeIterator,
INulls: TakeIteratorNulls;
}
Expand description
Fast access by index.
Required Methods§
sourceunsafe fn take_unchecked<I, INulls>(
&self,
indices: TakeIdx<'_, I, INulls>
) -> Selfwhere
Self: Sized,
I: TakeIterator,
INulls: TakeIteratorNulls,
unsafe fn take_unchecked<I, INulls>(
&self,
indices: TakeIdx<'_, I, INulls>
) -> Selfwhere
Self: Sized,
I: TakeIterator,
INulls: TakeIteratorNulls,
sourcefn take<I, INulls>(&self, indices: TakeIdx<'_, I, INulls>) -> PolarsResult<Self>where
Self: Sized,
I: TakeIterator,
INulls: TakeIteratorNulls,
fn take<I, INulls>(&self, indices: TakeIdx<'_, I, INulls>) -> PolarsResult<Self>where
Self: Sized,
I: TakeIterator,
INulls: TakeIteratorNulls,
Take values from ChunkedArray by index. Note that the iterator will be cloned, so prefer an iterator that takes the owned memory by reference.
Implementors§
impl ChunkTake for BinaryChunked
Available on crate feature
dtype-binary
only.impl ChunkTake for BooleanChunked
impl ChunkTake for ListChunked
impl ChunkTake for Utf8Chunked
impl<T> ChunkTake for ChunkedArray<T>where
T: PolarsNumericType,
impl<T: PolarsObject> ChunkTake for ObjectChunked<T>
Available on crate feature
object
only.