Skip to content

Commit bd43443

Browse files
committed
Add script to provide actionable report
1 parent 9b9a3e6 commit bd43443

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
require Explorer.DataFrame, as: DF
2+
3+
Path.join(__DIR__, "../../irve_static_consolidation_v2_report.csv")
4+
|> DF.from_csv!()
5+
|> DF.mutate(error_message_trunc: re_replace(error_message, "\n.*", ""))
6+
|> DF.mutate(error_message_trunc: substring(error_message_trunc, 0, 70))
7+
|> DF.mutate(error_type_trunc: substring(error_type, 0, 18))
8+
|> DF.group_by(["status", "error_type_trunc", "error_message_trunc"])
9+
|> DF.summarise(est_pdc_count: sum(estimated_pdc_count))
10+
|> DF.sort_by(desc: est_pdc_count)
11+
|> DF.print(limit: :infinity)

0 commit comments

Comments
 (0)