We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 121e354 commit 5965155Copy full SHA for 5965155
src/ml/data_loader.py
@@ -82,6 +82,9 @@ def load_anomaly_features(
82
df["date"] = pd.to_datetime(df["date"])
83
df = df.set_index("date").sort_index()
84
85
+ for col in df.columns:
86
+ df[col] = pd.to_numeric(df[col], errors="coerce")
87
+
88
numeric_cols = df.select_dtypes(include="number").columns
89
df[numeric_cols] = df[numeric_cols].replace(0, pd.NA)
90
df[numeric_cols] = df[numeric_cols].interpolate(method="linear", limit=3)
0 commit comments