Algorithm · Snapchat · Hard
Provide a pandas-only solution for computing a set of banner and story metrics from two DataFrames: events and users. Treat 2025-09-01 as the current date. The seven-day window for click-through metrics is 2025-08-26 through 2025-09-01, inclusive. The events table contains one row per logged action, with columns: event_id (integer), user_id (integer), ts (UTC datetime), event_type (one of banner_impression, banner_click, story_view, story_post, back_navigation), banner_id,…
Checking your access…