An Amazon-style catalog team highlights highly rated products.
Return product_id, product_name, rating for products rated at least 4.5. Sort by product_id ascending.
These DataFrames are passed to solve(spark, dfs). Access one with dfs['name'].
products7 rows| product_id (int) | product_name (string) | rating (double) |
|---|---|---|
| 1 | Wireless Earbuds | 4.6 |
| 2 | Phone Case | 4.2 |
| 3 | Yoga Mat | 4.7 |
| 4 | Desk Lamp | 4.5 |
| 5 | Water Bottle | 4.4 |
| 6 | Backpack | 4.8 |
| 7 | Notebook | 4.1 |
Column names and order must match. Sort order is specified in the question.