Skip to content

Commit

Permalink
Update summarize_fail.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kliao-csa authored Aug 17, 2023
1 parent f0825b2 commit 16d2ce8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/tools/summarize_fail.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
df = pd.read_json("run_list.json")
df.columns = ["Pull Request", "Workflow"]
print("Recent Failures:")
print(df.to_string(index = False))
df.to_csv("recent_fails.csv", index = False)
print(df.to_string(index=False))
df.to_csv("recent_fails.csv", index=False)
print()
print("Percentage Frequency:")
frequency = df["Workflow"].value_counts(normalize=True).mul(100).astype(str) + "%"
Expand Down

0 comments on commit 16d2ce8

Please sign in to comment.