An HDFC-style cards team calculates the minimum amount due on each card.
Return card_id, customer_name, minimum_due, where minimum due is outstanding * min_due_pct / 100, rounded to 2 decimal places. Sort by card_id ascending.
These DataFrames are passed to solve(spark, dfs). Access one with dfs['name'].
cards6 rows| card_id (int) | customer_name (string) | outstanding (double) | min_due_pct (double) |
|---|---|---|---|
| 1 | Aarav | 24000 | 5 |
| 2 | Bela | 8000 | 5 |
| 3 | Chen | 56000 | 10 |
| 4 | Dia | 15000 | 5 |
| 5 | Eli | 120000 | 2 |
| 6 | Fay | 3200 | 5 |
Column names and order must match. Sort order is specified in the question.