Onboarding Funnel From Signup to First Buy by Country

Last updated: November 29, 2026

Quick Overview

Using an events table in pandas, compute how many users who signed up reached each onboarding step (email verified, ID verified, payment linked, first buy) in order within seven days of signup, with step-to-step conversion rates per country.

Coinbase
Data Manipulation (SQL/Python)
Data Scientist
Coinbase
November 29, 2026
Data Scientist
Take-home Project
Data Manipulation (SQL/Python)
Easy

0

0

0 solved


Using an events table in pandas, compute how many users who signed up reached each onboarding step (email verified, ID verified, payment linked, first buy) in order within seven days of signup, with step-to-step conversion rates per country.

Coinbase onboarding includes identity verification required by regulation, and drop-off differs sharply by country due to ID types and payment rails. The interviewer checks clean pandas reshaping, a strict definition of reaching a step and correct handling of duplicates and missing events.

What the Interviewer Expects
  • Take the first occurrence of each event per user
  • Require steps in order and within the window from signup
  • Build the cohort only from users with a signup event
  • Compute counts and step conversion rates per country
  • Call out data quality cases found while checking
Key Topics to Cover
funnels and sessionization
pandas transformations
groupby
data cleaning
How to Approach This
  1. Clarify the schema and expected output format before writing queries.
  2. Use CTEs (WITH clauses) to break complex queries into readable steps.
  3. Consider window functions (ROW_NUMBER, RANK, LAG, LEAD) for ranking and sequential analysis.
  4. Watch for NULLs, duplicates, and edge cases in JOINs and GROUP BY.
  5. For pandas, prefer vectorized operations over row-by-row iteration.
Possible Follow-up Questions
  • How would you show median time between steps?
  • How would you compare funnels for users who signed up on mobile versus web?
  • Users can link payment before ID verification in some countries; how would you adapt the funnel?
  • How would you test whether a change to the ID upload screen improved conversion?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice SQL Problems
Sample Answer
Clarify the Data

events(user_id, country, event, ts) with one row per event; events can repeat (a user retries ID upload). Steps in order: signup, email_verified, id_verified, payment_linked, first_buy. A user reach...

Approach

Pivot to one row per user with the first timestamp of each step (groupby min, then unstack). Drop users with no signup. Walk the steps keeping a boolean 'reached so far' and the previous step's time. ...


Submit Your Answer
Markdown supported