The restaurants table contains restaurant ratings.
Return the single highest-rated restaurant as restaurant_id, restaurant_name, rating. Break ties by the smaller restaurant_id.
These DataFrames are passed to solve(spark, dfs). Access one with dfs['name'].
restaurants6 rows| restaurant_id (int) | restaurant_name (string) | rating (double) |
|---|---|---|
| 1 | Spice Route | 4.5 |
| 2 | Curry House | 4.8 |
| 3 | Tandoori Nights | 4.8 |
| 4 | Green Bowl | 4.2 |
| 5 | Sushi Bay | 4.7 |
| 6 | Pasta Point | 4.8 |
Column names and order must match. Sort order is specified in the question.