Spaces:
Sleeping
Sleeping
Update pages/1_EDA_GetAround.py
Browse files- pages/1_EDA_GetAround.py +12 -8
pages/1_EDA_GetAround.py
CHANGED
|
@@ -17,7 +17,7 @@ with st.sidebar:
|
|
| 17 |
st.page_link("pages/3_Prediction_Prix.py", label="Prediction Prix", icon="💰")
|
| 18 |
|
| 19 |
st.html(
|
| 20 |
-
"<h1 style='color: #b725c8cc; font-size:
|
| 21 |
)
|
| 22 |
|
| 23 |
df = pd.read_excel("get_around_delay_analysis.xlsx")
|
|
@@ -63,7 +63,7 @@ st.plotly_chart(fig, use_container_width=True)
|
|
| 63 |
#% de Clients qui vont jusqu'au bout versus % de Clients qui abandonnent.
|
| 64 |
|
| 65 |
st.html(
|
| 66 |
-
"<h2 style='color: #b725c8cc; font-size:
|
| 67 |
)
|
| 68 |
|
| 69 |
|
|
@@ -114,10 +114,9 @@ st.plotly_chart(fig)
|
|
| 114 |
#-------------------
|
| 115 |
|
| 116 |
# --- Titre et description ---
|
| 117 |
-
st.
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
""")
|
| 121 |
|
| 122 |
fig = go.Figure()
|
| 123 |
|
|
@@ -172,7 +171,9 @@ st.plotly_chart(fig)
|
|
| 172 |
|
| 173 |
# Type de Check in
|
| 174 |
|
| 175 |
-
st.
|
|
|
|
|
|
|
| 176 |
|
| 177 |
# Préparation des données
|
| 178 |
mask_canceled = df['state'] == 'canceled'
|
|
@@ -220,7 +221,10 @@ st.plotly_chart(fig)
|
|
| 220 |
|
| 221 |
#---
|
| 222 |
|
| 223 |
-
st.
|
|
|
|
|
|
|
|
|
|
| 224 |
mask_delta = df['time_delta_with_previous_rental_in_minutes'] >= 0
|
| 225 |
delta = df[mask_delta]
|
| 226 |
delta_canceled = delta[delta['state'] == 'canceled']
|
|
|
|
| 17 |
st.page_link("pages/3_Prediction_Prix.py", label="Prediction Prix", icon="💰")
|
| 18 |
|
| 19 |
st.html(
|
| 20 |
+
"<h1 style='color: #b725c8cc; font-size: 22px'>Dashboard GETAROUND</span>!</h1><span style='font-style: italic; text-align='right'>DataScience 33 - Eric Nguyen</span>"
|
| 21 |
)
|
| 22 |
|
| 23 |
df = pd.read_excel("get_around_delay_analysis.xlsx")
|
|
|
|
| 63 |
#% de Clients qui vont jusqu'au bout versus % de Clients qui abandonnent.
|
| 64 |
|
| 65 |
st.html(
|
| 66 |
+
"<h2 style='color: #b725c8cc; font-size: 20px'>Clients qui louent versus Clients qui abandonnent</span>!</h1><span style='font-style: italic; text-align='right'>DataScience 33 - Eric Nguyen</span>"
|
| 67 |
)
|
| 68 |
|
| 69 |
|
|
|
|
| 114 |
#-------------------
|
| 115 |
|
| 116 |
# --- Titre et description ---
|
| 117 |
+
st.html(
|
| 118 |
+
"<h2 style='color: #b725c8cc; font-size: 20px'>Répartition des clients par état et par Device</span>!</h1><span style='font-style: italic; text-align='right'>DataScience 33 - Eric Nguyen</span>"
|
| 119 |
+
)
|
|
|
|
| 120 |
|
| 121 |
fig = go.Figure()
|
| 122 |
|
|
|
|
| 171 |
|
| 172 |
# Type de Check in
|
| 173 |
|
| 174 |
+
st.html(
|
| 175 |
+
"<h2 style='color: #b725c8cc; font-size: 20px'>Analyse des annulations par type de check-in</span>!</h1><span style='font-style: italic; text-align='right'>DataScience 33 - Eric Nguyen</span>"
|
| 176 |
+
)
|
| 177 |
|
| 178 |
# Préparation des données
|
| 179 |
mask_canceled = df['state'] == 'canceled'
|
|
|
|
| 221 |
|
| 222 |
#---
|
| 223 |
|
| 224 |
+
st.html(
|
| 225 |
+
"<h2 style='color: #b725c8cc; font-size: 20px'>Canceled selon les intervalles de temps</span>!</h1><span style='font-style: italic; text-align='right'>DataScience 33 - Eric Nguyen</span>"
|
| 226 |
+
)
|
| 227 |
+
|
| 228 |
mask_delta = df['time_delta_with_previous_rental_in_minutes'] >= 0
|
| 229 |
delta = df[mask_delta]
|
| 230 |
delta_canceled = delta[delta['state'] == 'canceled']
|