SHELLAPANDIANGANHUNGING commited on
Commit
3992f93
·
verified ·
1 Parent(s): b1cd953

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -761,7 +761,7 @@ for col in candidate_executor_cols:
761
 
762
  if EXECUTOR_INDIV_COL is None:
763
  # Fallback — gunakan creator_name (dengan warning transparan)
764
- EXECUTOR_INDIV_COL = 'creator_name'
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. "
@@ -893,7 +893,7 @@ with col_3b:
893
  if avg_leadtime_nama.empty:
894
  st.warning("No data for division-level executor analysis.")
895
  else:
896
- sort_opt = st.selectbox("Show:", ["Fastest 10", "Slowest 10"], key='sort_3b')
897
 
898
  full_sorted = avg_leadtime_nama.sort_values('avg_monthly_leadtime', ascending=True) # cepat → lambat
899
  if sort_opt == "Fastest 10":
@@ -939,7 +939,7 @@ with col_3d:
939
  if avg_leadtime_per_indiv.empty:
940
  st.warning(f"No data for individual executor analysis (column: '{EXECUTOR_INDIV_COL}').")
941
  else:
942
- sort_opt = st.selectbox("Show:", ["Fastest 10", "Slowest 10"], key='sort_3d')
943
 
944
  full_sorted = avg_leadtime_per_indiv.sort_values('avg_monthly_leadtime', ascending=True)
945
  if sort_opt == "Fastest 10":
 
761
 
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. "
 
893
  if avg_leadtime_nama.empty:
894
  st.warning("No data for division-level executor analysis.")
895
  else:
896
+ sort_opt = st.selectbox("Show:", ["Top 10", "Bottom 10"], key='sort_3b')
897
 
898
  full_sorted = avg_leadtime_nama.sort_values('avg_monthly_leadtime', ascending=True) # cepat → lambat
899
  if sort_opt == "Fastest 10":
 
939
  if avg_leadtime_per_indiv.empty:
940
  st.warning(f"No data for individual executor analysis (column: '{EXECUTOR_INDIV_COL}').")
941
  else:
942
+ sort_opt = st.selectbox("Show:", ["Top 10", "Bottom 10"], key='sort_3d')
943
 
944
  full_sorted = avg_leadtime_per_indiv.sort_values('avg_monthly_leadtime', ascending=True)
945
  if sort_opt == "Fastest 10":