SHELLAPANDIANGANHUNGING commited on
Commit
d74da40
·
verified ·
1 Parent(s): e1ab220

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -1642,10 +1642,10 @@ st.markdown("<div class='predictive-header'>1. Which Reporters Are Predicted to
1642
  if not df_creator.empty:
1643
  cols = ['Creator', 'Avg Reports/Month', 'Coverage (%)', 'Trend Slope', 'Trend']
1644
 
1645
- # 🔥 Rename hanya untuk DISPLAY, bukan data asli
1646
- # df_display = df_creator[cols].rename(columns={
1647
- # "Reason": "Reason Forecast"
1648
- # })
1649
 
1650
  html = df_display.to_html(escape=False, index=False, table_id="tbl-creators")
1651
  st.markdown(f"<div class='predictive-table-wrapper'>{html}</div>", unsafe_allow_html=True)
@@ -1679,9 +1679,9 @@ if not df_location.empty:
1679
  cols = ['Location', 'Avg Reports/Month', 'Coverage (%)', 'Trend Slope', 'Trend']
1680
 
1681
  # # 🔥 Rename hanya untuk DISPLAY, bukan data asli
1682
- # df_display = df_location[cols].rename(columns={
1683
- # "Reason": "Reason Forecast"
1684
- # })
1685
 
1686
  html = df_display.to_html(escape=False, index=False, table_id="tbl-locations")
1687
  st.markdown(f"<div class='predictive-table-wrapper'>{html}</div>", unsafe_allow_html=True)
@@ -1715,9 +1715,9 @@ if not df_division.empty:
1715
  cols = ['Division', 'Avg Reports/Month', 'Coverage (%)', 'Trend Slope', 'Trend']
1716
 
1717
  # # 🔥 Rename hanya untuk DISPLAY, bukan data asli
1718
- # df_display = df_division[cols].rename(columns={
1719
- # "Reason": "Reason Forecast"
1720
- # })
1721
 
1722
  html = df_display.to_html(escape=False, index=False, table_id="tbl-divisions")
1723
  st.markdown(f"<div class='predictive-table-wrapper'>{html}</div>", unsafe_allow_html=True)
 
1642
  if not df_creator.empty:
1643
  cols = ['Creator', 'Avg Reports/Month', 'Coverage (%)', 'Trend Slope', 'Trend']
1644
 
1645
+ 🔥 Rename hanya untuk DISPLAY, bukan data asli
1646
+ df_display = df_creator[cols].rename(columns={
1647
+ "Reason": "Reason Forecast"
1648
+ })
1649
 
1650
  html = df_display.to_html(escape=False, index=False, table_id="tbl-creators")
1651
  st.markdown(f"<div class='predictive-table-wrapper'>{html}</div>", unsafe_allow_html=True)
 
1679
  cols = ['Location', 'Avg Reports/Month', 'Coverage (%)', 'Trend Slope', 'Trend']
1680
 
1681
  # # 🔥 Rename hanya untuk DISPLAY, bukan data asli
1682
+ df_display = df_location[cols].rename(columns={
1683
+ "Reason": "Reason Forecast"
1684
+ })
1685
 
1686
  html = df_display.to_html(escape=False, index=False, table_id="tbl-locations")
1687
  st.markdown(f"<div class='predictive-table-wrapper'>{html}</div>", unsafe_allow_html=True)
 
1715
  cols = ['Division', 'Avg Reports/Month', 'Coverage (%)', 'Trend Slope', 'Trend']
1716
 
1717
  # # 🔥 Rename hanya untuk DISPLAY, bukan data asli
1718
+ df_display = df_division[cols].rename(columns={
1719
+ "Reason": "Reason Forecast"
1720
+ })
1721
 
1722
  html = df_display.to_html(escape=False, index=False, table_id="tbl-divisions")
1723
  st.markdown(f"<div class='predictive-table-wrapper'>{html}</div>", unsafe_allow_html=True)