The signups table flags whether each signup is on a free trial.
Return signup_id, plan for signups where is_trial = 1. Sort by signup_id ascending.
These DataFrames are passed to solve(spark, dfs). Access one with dfs['name'].
signups6 rows| signup_id (int) | plan (string) | is_trial (int) |
|---|---|---|
| 1 | Basic | 1 |
| 2 | Pro | 0 |
| 3 | Basic | 1 |
| 4 | Team | 1 |
| 5 | Pro | 1 |
| 6 | Team | 0 |
Column names and order must match. Sort order is specified in the question.