FelixPhilip commited on
Commit
a636254
·
1 Parent(s): 19b8fa5
Files changed (1) hide show
  1. Oracle/deepfundingoracle.py +1 -1
Oracle/deepfundingoracle.py CHANGED
@@ -406,7 +406,7 @@ def clean_data(df):
406
  iqr = q3 - q1
407
  lower_bound = q1 - 1.5 * iqr
408
  upper_bound = q3 + 1.5 * iqr
409
- df = df[(df[col] >= lower_bound) & (df[col] <= upper_bound)]
410
 
411
  return df
412
 
 
406
  iqr = q3 - q1
407
  lower_bound = q1 - 1.5 * iqr
408
  upper_bound = q3 + 1.5 * iqr
409
+ df[col] = df[col].clip(lower=lower_bound, upper=upper_bound)
410
 
411
  return df
412