Trait polars_core::chunked_array::ops::ChunkTakeEvery [−][src]
pub trait ChunkTakeEvery<T> {
fn take_every(&self, n: usize) -> ChunkedArray<T>;
}
Expand description
Traverse and collect every nth element
Required methods
fn take_every(&self, n: usize) -> ChunkedArray<T>
fn take_every(&self, n: usize) -> ChunkedArray<T>
Traverse and collect every nth element in a new array.
Implementors
impl ChunkTakeEvery<CategoricalType> for CategoricalChunked
This is supported on crate feature
dtype-categorical
only.impl<T> ChunkTakeEvery<ObjectType<T>> for ObjectChunked<T>
This is supported on crate feature
object
only.