The products table contains product codes.
Return product_id, product_code for codes with at most 4 characters. Sort by product_id ascending.
These DataFrames are passed to solve(spark, dfs). Access one with dfs['name'].
products6 rows| product_id (int) | product_code (string) |
|---|---|
| 1 | AB12 |
| 2 | LONGCODE |
| 3 | X1 |
| 4 | P-99 |
| 5 | 12345 |
| 6 | Z9 |
Column names and order must match. Sort order is specified in the question.