Skip to content

Commit

Permalink
feat: run test data and simulate as real time data and sen alert
Browse files Browse the repository at this point in the history
  • Loading branch information
peterxcli committed Jan 27, 2024
1 parent 6c75941 commit 54cb406
Show file tree
Hide file tree
Showing 8 changed files with 3,529 additions and 8 deletions.
4 changes: 3 additions & 1 deletion ai/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ def preprocess_metric_data(data_dir: str) -> pd.DataFrame:
metric_df = pd.merge(metric_df, tmp_df, on="Time", how="outer")

# Strip the leading and trailing whitespaces in the "Time" column
metric_df["Time"] = metric_df["Time"].apply(lambda x: x.strip())
metric_df["Time"] = metric_df["Time"].apply(
lambda x: x.strip() if isinstance(x, str) else x
)

return metric_df
Loading

0 comments on commit 54cb406

Please sign in to comment.