vedastra commited on
Commit
aee7e44
·
verified ·
1 Parent(s): d3df8c9

Upload folder using huggingface_hub

Browse files
server/app.py CHANGED
@@ -22,8 +22,8 @@ except Exception as e:
22
  "openenv is required. Install dependencies with: uv sync"
23
  ) from e
24
 
25
- from models import DataCleaningAction, DataCleaningObservation
26
- from server.data_cleaning_env_environment import DataCleaningEnvironment
27
 
28
  from fastapi import HTTPException
29
  from fastapi.responses import JSONResponse
 
22
  "openenv is required. Install dependencies with: uv sync"
23
  ) from e
24
 
25
+ from ..models import DataCleaningAction, DataCleaningObservation
26
+ from .data_cleaning_env_environment import DataCleaningEnvironment
27
 
28
  from fastapi import HTTPException
29
  from fastapi.responses import JSONResponse
server/data_cleaning_env_environment.py CHANGED
@@ -505,11 +505,10 @@ class DataCleaningEnvironment(Environment):
505
  val = r.get(c)
506
  if val is not None and not isinstance(val, (int, float)):
507
  val_str = str(val).strip()
508
-
509
- if re.fullmatch(r"-?\d+(\.\d+)?", val_str):
510
- r[c] = float(val_str)
511
- else:
512
- r[c] = None
513
 
514
  elif op == "remove_outliers":
515
  self._rows = [
 
505
  val = r.get(c)
506
  if val is not None and not isinstance(val, (int, float)):
507
  val_str = str(val).strip()
508
+ if re.fullmatch(r"-?\d+(\.\d+)?", val_str):
509
+ r[c] = float(val_str)
510
+ else:
511
+ r[c] = None
 
512
 
513
  elif op == "remove_outliers":
514
  self._rows = [