The hotels table contains hotel locations.
Return each distinct city once, sorted alphabetically.
These DataFrames are passed to solve(spark, dfs). Access one with dfs['name'].
hotels6 rows| hotel_id (int) | city (string) |
|---|---|
| 1 | Mumbai |
| 2 | Delhi |
| 3 | Mumbai |
| 4 | Pune |
| 5 | Delhi |
| 6 | Goa |
Column names and order must match. Sort order is specified in the question.