Trait polars_core::chunked_array::ops::ChunkOps
source · [−]pub trait ChunkOps: ChunkLen {
fn rechunk(&self) -> Self
where
Self: Sized;
fn slice(&self, offset: i64, length: usize) -> Self
where
Self: Sized;
fn limit(&self, num_elements: usize) -> Self
where
Self: Sized,
{ ... }
fn head(&self, length: Option<usize>) -> Self
where
Self: Sized,
{ ... }
fn tail(&self, length: Option<usize>) -> Self
where
Self: Sized,
{ ... }
}
Required methods
Slice the array. The chunks are reallocated the underlying data slices are zero copy.
When offset is negative it will be counted from the end of the array. This method will never error, and will slice the best match when offset, or length is out of bounds
Provided methods
Get the head of the ChunkedArray