Skip to main content

GatherDf

Trait GatherDf 

Source
pub trait GatherDf {
    // Required methods
    fn gather_with_column(
        &self,
        idxs: &Column,
        null_on_oob: bool,
    ) -> PolarsResult<DataFrame>;
    fn gather_with_series(
        &self,
        idxs: &Series,
        null_on_oob: bool,
    ) -> PolarsResult<DataFrame>;
}

Required Methods§

Source

fn gather_with_column( &self, idxs: &Column, null_on_oob: bool, ) -> PolarsResult<DataFrame>

Selects from this DataFrame the rows at the indices in the given column.

Source

fn gather_with_series( &self, idxs: &Series, null_on_oob: bool, ) -> PolarsResult<DataFrame>

Selects from this DataFrame the rows at the indices in the given series.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl GatherDf for DataFrame

Source§

fn gather_with_column( &self, idxs: &Column, null_on_oob: bool, ) -> PolarsResult<DataFrame>

Source§

fn gather_with_series( &self, idxs: &Series, null_on_oob: bool, ) -> PolarsResult<DataFrame>

Implementors§