From 6312ac4614029e24caf41d57ce8ba77504d89eb2 Mon Sep 17 00:00:00 2001 From: Zapfmeister Date: Wed, 2 Oct 2024 11:33:46 +0200 Subject: [PATCH] Removed error ignore, as per deprecation notice --- detective/functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/detective/functions.py b/detective/functions.py index d126950..22d5d5a 100644 --- a/detective/functions.py +++ b/detective/functions.py @@ -9,7 +9,7 @@ def format_dataframe(df: pd.DataFrame) -> pd.DataFrame: """Convert states to numeric where possible and format the last_changed.""" df["state"] = pd.to_numeric(df["state"], errors="coerce") df["last_updated_ts"] = pd.to_datetime( - df["last_updated_ts"].values, errors="ignore", utc=True + df["last_updated_ts"].values, utc=True ).tz_localize(None) df = df.dropna() return df