Update
Browse files
app.py
CHANGED
@@ -118,11 +118,11 @@ for bug_id in fixed_bug_ids:
|
|
118 |
fixed_by_comp[comp] = fixed_by_comp.get(comp, 0) + 1
|
119 |
fixed_by_comp_df = pd.DataFrame(
|
120 |
{
|
121 |
-
"Component":
|
122 |
-
"Total":
|
123 |
-
"Repaired":
|
124 |
"Repair Rate (%)": [
|
125 |
-
round(fixed_by_comp
|
126 |
],
|
127 |
}
|
128 |
)
|
|
|
118 |
fixed_by_comp[comp] = fixed_by_comp.get(comp, 0) + 1
|
119 |
fixed_by_comp_df = pd.DataFrame(
|
120 |
{
|
121 |
+
"Component": list(comp_bug_count.keys()),
|
122 |
+
"Total": list(comp_bug_count.values()),
|
123 |
+
"Repaired": [fixed_by_comp.get(comp, 0) for comp in comp_bug_count.keys()],
|
124 |
"Repair Rate (%)": [
|
125 |
+
round(fixed_by_comp.get(comp, 0) / comp_bug_count[comp] * 100, 1) for comp in comp_bug_count.keys()
|
126 |
],
|
127 |
}
|
128 |
)
|