Spaces:
Sleeping
Sleeping
Update pages/2_Simulateur_Seuil.py
Browse files
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.
|
|
|
|
|
|
|
|
|
|
| 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 |
-
|
| 58 |
-
st.
|
|
|
|
|
|
|
| 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()
|