Skip to content

Commit

Permalink
Update ibis_ml/steps/_select_features.py
Browse files Browse the repository at this point in the history
Co-authored-by: Deepyaman Datta <[email protected]>
  • Loading branch information
jitingxu1 and deepyaman authored Jun 25, 2024
1 parent 5b1d7ba commit 2f121d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ibis_ml/steps/_select_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def fit_table(self, table: ir.Table, metadata: Metadata) -> None:
# Check variance for numeric columns
if math.isnan(col_var) or col_var < self.tolerance:
cols.append(col_name)
elif col_var is None or col_var < 2:
elif col_var < 2:
# Check unique count for non-numeric columns
cols.append(col_name)
metadata.drop_categories(col_name)
Expand Down

0 comments on commit 2f121d3

Please sign in to comment.