DrawCode Practice Problem

Distinct Paid Users · Parcel scans 45

Parcel scans DataFrame, variant 45. Return one user_id row for each user with a paid event, ordered by user_id. Implement `solve(df)` and return a PySpark DataFrame.


Interactive Visualizer Workspace

Explore step-by-step interactive animations, memory state tracking, and live multi-language execution in DrawCode.

Launch Interactive Visualizer