Spaces:
Sleeping
Sleeping
deschamps-g
commited on
Commit
•
f3759e1
1
Parent(s):
dc6aa15
Update app.py
Browse files
app.py
CHANGED
@@ -104,16 +104,18 @@ print('state: ', data['state'].value_counts())
|
|
104 |
|
105 |
st.subheader("Retard au retour selon le mode de réservation")
|
106 |
|
|
|
|
|
107 |
if st.checkbox('Mobile'):
|
108 |
-
|
109 |
else:
|
110 |
-
|
111 |
|
112 |
if st.checkbox('Montrer uniquement les voitures rendues en retard', value=True):
|
113 |
mini = 0
|
114 |
-
df =
|
115 |
else:
|
116 |
-
df =
|
117 |
mini = int(df['delay_at_checkout_in_minutes'].min())
|
118 |
|
119 |
trsh = int(df['delay_at_checkout_in_minutes'].max())
|
|
|
104 |
|
105 |
st.subheader("Retard au retour selon le mode de réservation")
|
106 |
|
107 |
+
# df[df['Year'] == i]
|
108 |
+
|
109 |
if st.checkbox('Mobile'):
|
110 |
+
data2 = data[data['checkin_type']=="mobile"]
|
111 |
else:
|
112 |
+
data2 = data[data['checkin_type']=="connect"]
|
113 |
|
114 |
if st.checkbox('Montrer uniquement les voitures rendues en retard', value=True):
|
115 |
mini = 0
|
116 |
+
df = data2[data2['delay_at_checkout_in_minutes']>mini]
|
117 |
else:
|
118 |
+
df = data2
|
119 |
mini = int(df['delay_at_checkout_in_minutes'].min())
|
120 |
|
121 |
trsh = int(df['delay_at_checkout_in_minutes'].max())
|