Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -688,7 +688,9 @@ def analyze_excel_single(file_path):
|
|
| 688 |
"%": percentages,
|
| 689 |
}
|
| 690 |
|
| 691 |
-
df_builder_pivot = pd.DataFrame(builder_consolidated)
|
|
|
|
|
|
|
| 692 |
|
| 693 |
# Define the order of the Trust Bucket® categories
|
| 694 |
trust_driver_order = [
|
|
|
|
| 688 |
"%": percentages,
|
| 689 |
}
|
| 690 |
|
| 691 |
+
df_builder_pivot = pd.DataFrame(builder_consolidated).style.applymap(
|
| 692 |
+
lambda _: f"background-color: {bucket_colors.get(_, '')}",
|
| 693 |
+
subset=list(bucket_colors.keys())
|
| 694 |
|
| 695 |
# Define the order of the Trust Bucket® categories
|
| 696 |
trust_driver_order = [
|