Skip to content

Commit

Permalink
Fix non outliers calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
argenisleon committed Dec 2, 2019
1 parent 5da97c2 commit f4a2fd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimus/outliers/abstract_outliers_bounds.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down

0 comments on commit f4a2fd8

Please sign in to comment.