Spaces:
Sleeping
Sleeping
deschamps-g
commited on
Commit
•
a414ab1
1
Parent(s):
6033d62
Update app.py
Browse files
app.py
CHANGED
@@ -121,9 +121,11 @@ maxi = int(df['delay_at_checkout_in_minutes'].max())
|
|
121 |
|
122 |
move_upper_mask = df['delay_at_checkout_in_minutes']<seuil
|
123 |
lower_mask = df['delay_at_checkout_in_minutes']>mini
|
124 |
-
|
|
|
|
|
125 |
number_of_rent = len(df[global_mask])
|
126 |
-
part_of_rent = 100 * len(df[
|
127 |
|
128 |
fig_px = px.histogram(df, color='checkin_type', x='delay_at_checkout_in_minutes')
|
129 |
fig = go.Figure(fig_px)
|
|
|
121 |
|
122 |
move_upper_mask = df['delay_at_checkout_in_minutes']<seuil
|
123 |
lower_mask = df['delay_at_checkout_in_minutes']>mini
|
124 |
+
type_mask = df['checkin_type']="mobile"
|
125 |
+
global_mask = move_upper_mask & lower_mask & type_mask
|
126 |
+
part_mask = move_upper_mask & type_mask
|
127 |
number_of_rent = len(df[global_mask])
|
128 |
+
part_of_rent = 100 * len(df[part_mask]) / len(df[type_mask])
|
129 |
|
130 |
fig_px = px.histogram(df, color='checkin_type', x='delay_at_checkout_in_minutes')
|
131 |
fig = go.Figure(fig_px)
|