orders has columns customer_id, signup_month and order_month (both "YYYY-MM") and revenue. Implement ltv_curve(orders, cohort_sizes) where cohort_sizes maps signup month to the number of customers who signed up (including those who never ordered).
Unlock this and every premium problem across all tracks — plus hidden-test grading, advanced AI engineering modules and new content every week.
Start 7-day free trial