Free Trial Signups

Easy
Filtering

Free Trial Signups

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.

Browser Engine: Evaluates PySpark DataFrame & SQL logic locally in Pyodide WebAssembly.

Input data

1 DataFrame

These DataFrames are passed to solve(spark, dfs). Access one with dfs['name'].

df.signups6 rows
signup_id (int)plan (string)is_trial (int)
1Basic1
2Pro0
3Basic1
4Team1
5Pro1
6Team0

Return these columns

signup_id(int)
plan(string)

Column names and order must match. Sort order is specified in the question.

Browser engine
Loading Python editor…
Click Run to try the sample cases, or Submit to check the hidden cases. First run caches the browser Python engine (~8–15s once); all code stays on your device.