Skip to content

Commit

Permalink
Removed error ignore, as per deprecation notice
Browse files Browse the repository at this point in the history
  • Loading branch information
Zapfmeister authored Oct 2, 2024
1 parent abfc2c7 commit 6312ac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detective/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6312ac4

Please # to comment.