DrawCode Practice Problem

Revenue by Category · IoT readings 8

IoT readings DataFrame, variant 8. For paid rows, return category and total_amount, ordered by total_amount descending then category. 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