ericjedha commited on
Commit
cd64ab4
·
verified ·
1 Parent(s): fd558af

Update pages/2_Simulateur_Seuil.py

Browse files
Files changed (1) hide show
  1. pages/2_Simulateur_Seuil.py +8 -3
pages/2_Simulateur_Seuil.py CHANGED
@@ -13,7 +13,10 @@ with st.sidebar:
13
  st.page_link("pages/2_Simulateur_Seuil.py", label="Simulateur Seuil", icon="⏱️")
14
  st.page_link("pages/3_Prediction_Prix.py", label="Prediction Prix", icon="💰")
15
 
16
- st.title("Simulateur de Seuil d'Annulation pour Getaround")
 
 
 
17
 
18
  # --- 1. CHARGEMENT ET PRÉPARATION DES DONNÉES ---
19
  # Optimisation des performances de Streamlit : 1 chargement.
@@ -54,8 +57,10 @@ def calculate_impact(threshold):
54
  return lost_clients, lost_clients_pct_total, remaining_problems_pct
55
 
56
  # --- 3. PRÉ-CALCUL POUR LA COURBE (méthode Pandas) ---
57
- st.header("Analyse de l'Impact du Seuil de Temps")
58
- st.write("Visualisez l'accumulation des annulations en fonction du temps de battement. Le 'coude' de la courbe indique la fenêtre de temps où se concentrent le plus de problèmes, et donc où les actions (notifications, alertes) auront le plus d'impact.")
 
 
59
 
60
  cancellation_counts = canceled_df['time_delta_with_previous_rental_in_minutes'].value_counts()
61
  full_range_counts = cancellation_counts.reindex(range(751), fill_value=0).sort_index()
 
13
  st.page_link("pages/2_Simulateur_Seuil.py", label="Simulateur Seuil", icon="⏱️")
14
  st.page_link("pages/3_Prediction_Prix.py", label="Prediction Prix", icon="💰")
15
 
16
+ st.html(
17
+ "<h1 style='color: #b725c8cc; font-size: 22px'>Simulateur de Seuil d'Annulation pour Getaround</span>!</h1>"
18
+ )
19
+
20
 
21
  # --- 1. CHARGEMENT ET PRÉPARATION DES DONNÉES ---
22
  # Optimisation des performances de Streamlit : 1 chargement.
 
57
  return lost_clients, lost_clients_pct_total, remaining_problems_pct
58
 
59
  # --- 3. PRÉ-CALCUL POUR LA COURBE (méthode Pandas) ---
60
+
61
+ st.html(
62
+ "<h2 style='color: #b725c8cc; font-size: 20px'>Visualisez l'accumulation des annulations en fonction du temps.</span>!</h2>"
63
+ )
64
 
65
  cancellation_counts = canceled_df['time_delta_with_previous_rental_in_minutes'].value_counts()
66
  full_range_counts = cancellation_counts.reindex(range(751), fill_value=0).sort_index()