Find Where Users Abandon Google Wallet Card Setup Across Retries

Last updated: November 29, 2026

Quick Overview

Given Google Wallet card setup events (start, add card, verify identity, set PIN, complete), find for each user who abandoned their latest attempt the furthest step they reached, treating 24 hours of inactivity as abandonment.

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

0

0

0 solved


Given Google Wallet card setup events (start, add card, verify identity, set PIN, complete), find for each user who abandoned their latest attempt the furthest step they reached, treating 24 hours of inactivity as abandonment.

A take-home style pandas task for Google payments analytics, where onboarding friction (identity checks, bank verification) drives drop-off. The interviewer looks at how you define attempts when users restart, how you separate abandoned from still-in-progress users, and whether your output tells a product manager where to focus.

What the Interviewer Expects
  • Split each user's events into attempts using a cumulative count of start events
  • Analyze only the latest attempt per user
  • Distinguish completed, in-progress and abandoned using an idle threshold
  • Report abandonment by furthest step reached, including zero rows
  • Explain how retries would distort a naive per-event funnel
Key Topics to Cover
funnel drop-off
attempt segmentation
pandas cumsum
abandonment
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 whether users who retry eventually complete at a higher rate?
  • Identity verification has an asynchronous review that can take two days. How does that change the idle rule?
  • How would you present this to the Wallet PM in one chart?
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, ts, step) where step is one of start, add_card, verify_identity, set_pin, complete. A user who comes back and taps "Add card" again generates a new start. Abandoned means the lates...

Approach

Sort by user, time and step order. A cumulative sum of step == 'start' per user numbers the attempts, so every event knows which attempt it belongs to. Keep the latest attempt per user and take the ...


Submit Your Answer
Markdown supported