PoroKami commited on
Commit
414d038
·
1 Parent(s): 555c2e2

je sais pas

Browse files
Files changed (1) hide show
  1. src/app.py +4 -0
src/app.py CHANGED
@@ -62,7 +62,11 @@ print("observed_df :", observed_df.shape)
62
 
63
  # === Liste des départements
64
  departements = [col.replace("Département_", "") for col in df.columns if col.startswith("Département_")]
 
65
 
 
 
 
66
  # === Mise en page
67
  st.set_page_config(layout="wide")
68
  st.markdown("<h1 style='text-align: center;'>♻️ Simulateur de production de déchets par département</h1>", unsafe_allow_html=True)
 
62
 
63
  # === Liste des départements
64
  departements = [col.replace("Département_", "") for col in df.columns if col.startswith("Département_")]
65
+ selected_dept = st.selectbox("Choisis un département :", options=departements)
66
 
67
+ if selected_dept:
68
+ row_default = df[df[f"Département_{selected_dept}"] == 1].iloc[0]
69
+ st.write(row_default)
70
  # === Mise en page
71
  st.set_page_config(layout="wide")
72
  st.markdown("<h1 style='text-align: center;'>♻️ Simulateur de production de déchets par département</h1>", unsafe_allow_html=True)