pub unsafe fn take_opt_iter_unchecked_bounds<I>(&self, iter: I, capacity: Option<usize>) -> Self
    where
        I: Iterator<Item = Option<usize>> + Clone + Sync,
    {
        let new_col = self
            .columns
            .par_iter()
            .map(|s| {
                let mut i = iter.clone();
                if s.null_count() == 0 {
                    s.take_opt_iter_unchecked(&mut i, capacity)
                } else {
                    s.take_opt_iter(&mut i, capacity)
                }
            })
            .collect::<Vec<_>>();
        DataFrame::new_no_checks(new_col)
    }
/// Take DataFrame values by indexes from an iterator that may contain None values.
///
/// # Safety
///
/// This doesn't do any bound checking. Out of bounds may access uninitialized memory.
/// Null validity is checked
Take DataFrame values by indexes from an iterator that may contain None values.
Take DataFrame values by indexes from an iterator that may contain None values .
pub unsafe fn take_opt_iter_unchecked_bounds<I>(&self, iter: I, capacity: Option<usize>) -> Self
    where
        I: Iterator<Item = Option<usize>> + Clone + Sync,
    {
        let new_col = self
            .columns
            .par_iter()
            .map(|s| {
                let mut i = iter.clone();
                if s.null_count() == 0 {
                    s.take_opt_iter_unchecked(&mut i, capacity)
                } else {
                    s.take_opt_iter(&mut i, capacity)
                }
            })
            .collect::<Vec<_>>();
        DataFrame::new_no_checks(new_col)
    }
pub unsafe fn take_opt_iter_unchecked_bounds < I > ( & self , iter : I , capacity : Option < usize > ) -> Self where I : Iterator < Item = Option < usize > > + Clone + Sync , { let new_col = self . columns . par_iter ( ) . map ( | s | { let mut i = iter . clone ( ) ; if s . null_count ( ) == 0 { s . take_opt_iter_unchecked ( & mut i , capacity ) } else { s . take_opt_iter ( & mut i , capacity ) } } ) . collect :: < Vec < _ > > ( ) ; DataFrame :: new_no_checks ( new_col ) }
Take DataFrame values by indexes from an iterator that may contain None values.
Take DataFrame values by indexes from an iterator that may contain None values .
&self
iter
I
capacity
Option<usize>
&self
iter
I
capacity
Option<usize>
safety
This doesn't do any bound checking. Out of bounds may access uninitialized memory.
Null validity is checked
This doesn ' t do any bound checking . Out of bounds may access uninitialized memory . Null validity is checked