Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jitingxu1 committed Jun 24, 2024
1 parent 3936fa2 commit 33bf160
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ibis_ml/steps/_select_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ def fit_table(self, table: ir.Table, metadata: Metadata) -> None:
col_var = results[f"{col_name}_var"]
if isinstance(table[col_name], ir.NumericColumn):
# Check variance for numeric columns
if col_var is None or math.isnan(col_var) or col_var < self.tolerance:
if (
col_var is None
or math.isnan(col_var)
or col_var < self.tolerance
):
cols.append(col_name)
elif col_var is None or col_var < 2:
# Check unique count for non-numeric columns
Expand Down

0 comments on commit 33bf160

Please sign in to comment.