polars::prelude

Trait DfTake

Source
pub trait DfTake: IntoDf {
    // Provided methods
    unsafe fn _take_chunked_unchecked_seq(
        &self,
        idx: &[ChunkId],
        sorted: IsSorted,
    ) -> DataFrame { ... }
    unsafe fn _take_opt_chunked_unchecked_seq(
        &self,
        idx: &[ChunkId],
    ) -> DataFrame { ... }
    unsafe fn _take_chunked_unchecked(
        &self,
        idx: &[ChunkId],
        sorted: IsSorted,
    ) -> DataFrame { ... }
    unsafe fn _take_opt_chunked_unchecked(&self, idx: &[ChunkId]) -> DataFrame { ... }
}
Available on crate feature polars-ops only.

Provided Methods§

Source

unsafe fn _take_chunked_unchecked_seq( &self, idx: &[ChunkId], sorted: IsSorted, ) -> DataFrame

Take elements by a slice of ChunkIds.

§Safety

Does not do any bound checks. sorted indicates if the chunks are sorted.

Source

unsafe fn _take_opt_chunked_unchecked_seq(&self, idx: &[ChunkId]) -> DataFrame

Take elements by a slice of optional ChunkIds.

§Safety

Does not do any bound checks.

Source

unsafe fn _take_chunked_unchecked( &self, idx: &[ChunkId], sorted: IsSorted, ) -> DataFrame

§Safety

Doesn’t perform any bound checks

Source

unsafe fn _take_opt_chunked_unchecked(&self, idx: &[ChunkId]) -> DataFrame

§Safety

Doesn’t perform any bound checks

Check for null state in ChunkId.

Implementors§