Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -762,11 +762,11 @@ for col in candidate_executor_cols:
|
|
| 762 |
if EXECUTOR_INDIV_COL is None:
|
| 763 |
# Fallback — gunakan creator_name (dengan warning transparan)
|
| 764 |
EXECUTOR_INDIV_COL = 'nama_pic'
|
| 765 |
-
st.warning(
|
| 766 |
-
|
| 767 |
-
|
| 768 |
-
|
| 769 |
-
)
|
| 770 |
|
| 771 |
|
| 772 |
# ─── Hitung semua metrik ─────────────────────────────────────────────────────
|
|
@@ -895,7 +895,7 @@ with col_3b:
|
|
| 895 |
else:
|
| 896 |
sort_opt = st.selectbox(
|
| 897 |
"Show:",
|
| 898 |
-
["Top 10
|
| 899 |
key='sort_3b'
|
| 900 |
)
|
| 901 |
|
|
@@ -903,7 +903,7 @@ with col_3b:
|
|
| 903 |
full_sorted = avg_leadtime_nama.sort_values('avg_monthly_leadtime', ascending=True)
|
| 904 |
|
| 905 |
# Ambil subset sesuai pilihan
|
| 906 |
-
if sort_opt == "Top 10
|
| 907 |
# 10 tercepat: ascending (kecil → besar), tetap diurut ascending → tercepat di atas
|
| 908 |
subset = full_sorted.head(10).copy()
|
| 909 |
else: # "Bottom 10 Slowest"
|
|
@@ -965,13 +965,13 @@ with col_3d:
|
|
| 965 |
else:
|
| 966 |
sort_opt = st.selectbox(
|
| 967 |
"Show:",
|
| 968 |
-
["Top 10
|
| 969 |
key='sort_3d'
|
| 970 |
)
|
| 971 |
|
| 972 |
full_sorted = avg_leadtime_per_indiv.sort_values('avg_monthly_leadtime', ascending=True)
|
| 973 |
|
| 974 |
-
if sort_opt == "Top 10
|
| 975 |
subset = full_sorted.head(10).copy()
|
| 976 |
else: # "Bottom 10 Slowest"
|
| 977 |
subset = full_sorted.tail(10).sort_values('avg_monthly_leadtime', ascending=False)
|
|
|
|
| 762 |
if EXECUTOR_INDIV_COL is None:
|
| 763 |
# Fallback — gunakan creator_name (dengan warning transparan)
|
| 764 |
EXECUTOR_INDIV_COL = 'nama_pic'
|
| 765 |
+
# st.warning(
|
| 766 |
+
# "⚠️ No dedicated executor column (e.g., 'pic', 'responsible') found. "
|
| 767 |
+
# "Using 'creator_name' as proxy for executor — insights may conflate reporters & executors. "
|
| 768 |
+
# "Consider adding an executor identifier column for accuracy."
|
| 769 |
+
# )
|
| 770 |
|
| 771 |
|
| 772 |
# ─── Hitung semua metrik ─────────────────────────────────────────────────────
|
|
|
|
| 895 |
else:
|
| 896 |
sort_opt = st.selectbox(
|
| 897 |
"Show:",
|
| 898 |
+
["Top 10", "Bottom 10"],
|
| 899 |
key='sort_3b'
|
| 900 |
)
|
| 901 |
|
|
|
|
| 903 |
full_sorted = avg_leadtime_nama.sort_values('avg_monthly_leadtime', ascending=True)
|
| 904 |
|
| 905 |
# Ambil subset sesuai pilihan
|
| 906 |
+
if sort_opt == "Top 10":
|
| 907 |
# 10 tercepat: ascending (kecil → besar), tetap diurut ascending → tercepat di atas
|
| 908 |
subset = full_sorted.head(10).copy()
|
| 909 |
else: # "Bottom 10 Slowest"
|
|
|
|
| 965 |
else:
|
| 966 |
sort_opt = st.selectbox(
|
| 967 |
"Show:",
|
| 968 |
+
["Top 10", "Bottom 10"],
|
| 969 |
key='sort_3d'
|
| 970 |
)
|
| 971 |
|
| 972 |
full_sorted = avg_leadtime_per_indiv.sort_values('avg_monthly_leadtime', ascending=True)
|
| 973 |
|
| 974 |
+
if sort_opt == "Top 10":
|
| 975 |
subset = full_sorted.head(10).copy()
|
| 976 |
else: # "Bottom 10 Slowest"
|
| 977 |
subset = full_sorted.tail(10).sort_values('avg_monthly_leadtime', ascending=False)
|