Skip to content

Commit

Permalink
fix(steps): set HandleUnivariateOutliers._fit_expr
Browse files Browse the repository at this point in the history
  • Loading branch information
jitingxu1 authored and deepyaman committed May 30, 2024
1 parent 54eecde commit c5d92fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ibis_ml/steps/_handle_outliers.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ def fit_table(self, table: ir.Table, metadata: Metadata) -> None:
aggs.append(c.quantile(0.25).name(f"{name}_25"))
aggs.append(c.quantile(0.75).name(f"{name}_75"))

results = table.aggregate(aggs).execute().to_dict("records")[0]
self._fit_expr = [table.aggregate(aggs)]
results = self._fit_expr[0].execute().to_dict("records")[0]

for name in columns:
if self.method == "z-score":
Expand Down

0 comments on commit c5d92fc

Please sign in to comment.