MetaData Scientist · Technical ScreenCodemia practicePivot Daily Ad Spend from Long to Wide by Placement
Given a long DataFrame of (date, campaign_id, placement, spend) where placement is one of Feed, Stories, Reels or Audience Network, reshape it to one row per date and campaign with a spend column per placement plus a total, filling missing placements with zero.
Easy
Data Manipulation (SQL/Python)