diff --git a/optimus/outliers/abstract_outliers_bounds.py b/optimus/outliers/abstract_outliers_bounds.py index 57b7586d..7ce56f72 100644 --- a/optimus/outliers/abstract_outliers_bounds.py +++ b/optimus/outliers/abstract_outliers_bounds.py @@ -128,7 +128,7 @@ def non_outliers_count(self): """ col_name = self.col_name return self.df.rows.select( - (F.col(col_name) <= self.upper_bound) | (F.col(col_name) >= self.lower_bound)).count() + (F.col(col_name) <= self.upper_bound) & (F.col(col_name) >= self.lower_bound)).count() @abstractmethod def info(self, output: str = "dict"):