PinterestData Scientist · OnsiteCodemia practiceLast-Click Attribution of Checkouts to Promoted Pins Within Seven Days
Given clicks(user_id, pin_id, advertiser_id, click_ts) on promoted Pins and checkouts(order_id, user_id, advertiser_id, checkout_ts, amount) that can contain duplicate events per order, attribute each unique order to the user's most recent click on the same advertiser's Pins in the 7 days before checkout, leaving unattributed orders null.
Hard
Data Manipulation (SQL/Python)