The orders table records order day per customer.
Return customer_id for customers who placed more than one order on the same day. Return each customer once, sorted by customer_id ascending.
These DataFrames are passed to solve(spark, dfs). Access one with dfs['name'].
orders10 rows| order_id (int) | customer_id (int) | order_day (int) |
|---|---|---|
| 1 | 101 | 1 |
| 2 | 101 | 1 |
| 3 | 101 | 2 |
| 4 | 102 | 1 |
| 5 | 102 | 2 |
| 6 | 103 | 3 |
| 7 | 103 | 3 |
| 8 | 104 | 4 |
| 9 | 105 | 1 |
| 10 | 105 | 2 |
Column names and order must match. Sort order is specified in the question.