The payments table contains repeated payment methods.
Return each distinct method once, sorted alphabetically.
These DataFrames are passed to solve(spark, dfs). Access one with dfs['name'].
payments6 rows| payment_id (int) | method (string) |
|---|---|
| 1 | card |
| 2 | upi |
| 3 | card |
| 4 | netbanking |
| 5 | upi |
| 6 | wallet |
Column names and order must match. Sort order is specified in the question.