pub fn drop_nulls(&self, subset: Option<&[String]>) -> Result<Self> {
        let selected_series;

        let mut iter = match subset {
            Some(cols) => {
                selected_series = self.select_series(&cols)?;
                selected_series.iter()
            }
            None => self.columns.iter(),
        };

        let mask = iter
            .next()
            .ok_or_else(|| PolarsError::NoData("No data to drop nulls from".into()))?;
        let mut mask = mask.is_not_null();

        for s in iter {
            mask = mask & s.is_not_null();
        }
        self.filter(&mask)
    }
/// Return a new DataFrame where all null values are dropped
Return a new DataFrame where all null values are dropped
Return a new DataFrame where all null values are dropped
pub fn drop_nulls(&self, subset: Option<&[String]>) -> Result<Self> {
        let selected_series;
        let mut iter = match subset {
            Some(cols) => {
                selected_series = self.select_series(&cols)?;
                selected_series.iter()
            }
            None => self.columns.iter(),
        };
        let mask = iter
            .next()
            .ok_or_else(|| PolarsError::NoData("No data to drop nulls from".into()))?;
        let mut mask = mask.is_not_null();
        for s in iter {
            mask = mask & s.is_not_null();
        }
        self.filter(&mask)
    }
pub fn drop_nulls ( & self , subset : Option < & [ String ] > ) -> Result < Self > { let selected_series ; let mut iter = match subset { Some ( cols ) => { selected_series = self . select_series ( & cols ) ? ; selected_series . iter ( ) } None => self . columns . iter ( ) , } ; let mask = iter . next ( ) . ok_or_else ( | | PolarsError :: NoData ( " " . into ( ) ) ) ? ; let mut mask = mask . is_not_null ( ) ; for s in iter { mask = mask & s . is_not_null ( ) ; } self . filter ( & mask ) }
Return a new DataFrame where all null values are dropped
Return a new DataFrame where all null values are dropped
&self
subset
Option<&[String]>
&self
subset
Option<&[String]>