Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Compute CTR by Campaign and Device

Medium
MediumSQL & Data ManipulationData WranglingGroup ByAggregations

Problem

Given a dataset of ad impressions and clicks, write a Python program using numpy or pandas to calculate the click-through rate (CTR) grouped by campaign and device type.

Take this as a live interview session →

You are practicing as a guest. Sign up free to get your answer graded with AI feedback. Your draft stays right here.

Sign up freeI have an account
Sign up to unlock solutions
Next questions
MolocoCTR by Campaign and DeviceMediumIterableAggregate CTR by Device and CampaignMediumInternet BrandsCompute CTR by DeviceMedium