Spaces:
Sleeping
Sleeping
Update src/map_viz_pred.py
Browse files- src/map_viz_pred.py +1 -1
src/map_viz_pred.py
CHANGED
@@ -70,7 +70,7 @@ def calling_pred_map_viz(counts_df1, input_day = None, input_hour = None):
|
|
70 |
"tuas_to_jh" :day_hour_view_group.loc[(day_hour_view_group['view'] == 'Tuas - to Johor') & (day_hour_view_group['day_name'] == filtered_day) & (day_hour_view_group['hour'] == filtered_hour), "total" ].iloc[0]
|
71 |
}
|
72 |
|
73 |
-
values = np.array([0., 0.
|
74 |
values = np.sort(np.array(values))
|
75 |
values = np.interp(values, (values.min(), values.max()), (0., 1.))
|
76 |
colors = ["#539f6b", "#ffc835", "#bf0000"]
|
|
|
70 |
"tuas_to_jh" :day_hour_view_group.loc[(day_hour_view_group['view'] == 'Tuas - to Johor') & (day_hour_view_group['day_name'] == filtered_day) & (day_hour_view_group['hour'] == filtered_hour), "total" ].iloc[0]
|
71 |
}
|
72 |
|
73 |
+
values = np.array([0., 0.25, 1.])
|
74 |
values = np.sort(np.array(values))
|
75 |
values = np.interp(values, (values.min(), values.max()), (0., 1.))
|
76 |
colors = ["#539f6b", "#ffc835", "#bf0000"]
|