Skip to content

Commit 2a49e7f

Browse files
committed
Add satisfaction workarounds chart
1 parent 64efa41 commit 2a49e7f

File tree

1 file changed

+18
-0
lines changed
  • surveys/2025/compiler-performance-survey/report

1 file changed

+18
-0
lines changed

surveys/2025/compiler-performance-survey/report/main.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,18 @@ def compiler_performance_2025_report(df: pd.DataFrame) -> ChartReport:
522522
**kwargs
523523
)
524524
)
525+
report.add_custom_chart(
526+
"satisfaction-workarounds",
527+
lambda **kwargs: render_stacked_bar_chart(
528+
df,
529+
col="used-workarounds",
530+
row="satisfaction",
531+
row_title="Satisfaction (10 = best)",
532+
col_title="Used a workaround",
533+
title="Overall satisfaction based on whether a workaround was used",
534+
**kwargs
535+
)
536+
)
525537

526538
return report
527539

@@ -624,6 +636,12 @@ def reconstruct_col(name: str, answer_count: int, map_value: Callable[[Any], Any
624636
})
625637
print(f"Used workaround: {df['used-workarounds'].value_counts()}")
626638

639+
workarounds = df['used-workarounds'].fillna(0).astype('bool')
640+
print(
641+
f"Used workaround satisfaction mean: {df[workarounds]['satisfaction'].mean()}")
642+
print(
643+
f"Not used a workaround satisfaction mean: {df[~workarounds]['satisfaction'].mean()}")
644+
627645
uses_ci = df["uses-ci"].sum()
628646
uses_ci_is_blocker = (df["uses-ci"] & df["ci-is-blocker"]).sum()
629647
uses_ci_is_blocker_no_caching = (

0 commit comments

Comments
 (0)