We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b9a3e6 commit bd43443Copy full SHA for bd43443
1 file changed
scripts/irve/report-on-simple-consolidation.exs
@@ -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