DrawCode Practice Problem

Events per User · Subscription invoices 72

Subscription invoices DataFrame, variant 72. Return user_id and event_count, ordered by event_count descending then 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