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.

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§