Skip to content

Commit

Permalink
Merge pull request #158 from Zapfmeister/fix_depcreation_message
Browse files Browse the repository at this point in the history
Removed error ignore, as per deprecation notice
  • Loading branch information
robmarkcole authored Oct 2, 2024
2 parents abfc2c7 + 6312ac4 commit 162b0d5
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 162b0d5

Please # to comment.