The orders table contains order IDs and item quantities.
Return order_id, quantity, is_bulk, where is_bulk is true when quantity is at least 50 and false otherwise. Sort by order_id ascending.
These DataFrames are passed to solve(spark, dfs). Access one with dfs['name'].
orders6 rows| order_id (int) | quantity (int) |
|---|---|
| 501 | 12 |
| 502 | 50 |
| 503 | 49 |
| 504 | 120 |
| 505 | 5 |
| 506 | 75 |
Column names and order must match. Sort order is specified in the question.