Spaces:
Sleeping
Sleeping
File size: 356 Bytes
3e7dcaf a5b89b6 3e7dcaf a5b89b6 |
1 2 3 4 5 6 7 |
def apply_filters(df, alert_filter, cam_filter, location_filter):
filtered_df = df[df["AlertLevel"].isin(alert_filter)]
if cam_filter != "All":
filtered_df = filtered_df[filtered_df["CameraStatus"] == cam_filter]
if location_filter:
filtered_df = filtered_df[filtered_df["Location"].isin(location_filter)]
return filtered_df |