Pandas interview question: ARPU and ARPPU by channel

EasyProduct metrics

Problem

Shared data rules

By acquisition channel, find the September 2026 ARPU and ARPPU of users who signed up in August 2026. Also find the payer share.

Formulas

Example

Input: users
user_idsignup_tsacq_channel
12026-08-03 12:15ads
22026-08-12 21:40ads
32026-08-20 10:10ads
42026-08-25 15:30referral
Input: orders
order_iduser_idcreated_atstatusamount_usdRow note
10112026-09-02 13:00delivered36
10212026-09-15 19:20delivered24
10322026-08-28 14:45delivered50← August — doesn’t count
10442026-09-10 11:30delivered40
Output
acq_channelcohort_userspayerspayer_sharearppuarpu
ads310.33336020
referral1114040

In ads only user 1 pays: $36 + $24 = $60. ARPPU = 60 / 1 = $60, ARPU = 60 / 3 = $20.

Solve it free

Your code runs on real pandas in your browser. No sign-up needed.

Skills it tests

More interview questions

All questions