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 22, 2023
1 parent b8d706f commit b4f754c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/tools/summarize_fail.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
df.to_csv("recent_fails.csv", index=False)
print()
print("Percentage Frequency:")
frequency = df["Workflow"].value_counts(normalize=True).mul(100).astype(str).to_frame("Percentage")
frequency = df["Workflow"].value_counts(normalize=True).mul(100).astype(str).reset_index(name="Percentage")
print(frequency.to_string(index=False))
frequency.to_csv("recent_fails_frequency.csv")
print()
Expand Down

0 comments on commit b4f754c

Please sign in to comment.