fix str conversion to float

This commit is contained in:
2025-12-22 15:34:11 +01:00
parent 3d6e77a9e7
commit 13c419353c

View File

@@ -33,7 +33,7 @@ EXPORT_KEYS: list[str] = [
] ]
def clean_data(v: str) -> float | str: def clean_data(v: str) -> float | str:
if v.isalpha(): if v.replace(" ","").isalpha():
return v return v
return float(v) return float(v)