fix: pytest warnings

This commit is contained in:
Stijnvandenbroek
2026-03-11 13:31:49 +00:00
parent 52f70d356c
commit 18a05ab6d7
3 changed files with 10 additions and 23 deletions

View File

@@ -86,6 +86,8 @@ class EloModelConfig(Config):
def preprocess(df: pd.DataFrame) -> pd.DataFrame:
"""Convert raw columns to model-ready numeric features."""
pd.set_option("future.no_silent_downcasting", True)
df["energy_label_num"] = (
df["energy_label"]
.str.strip()