High Earners

Easy
Filtering
Netflix
Paytm

High Earners

Given a employees DataFrame, return rows where salary > 100000. Project the columns emp_id, name, salary and order by emp_id ascending.

Sample input employees

emp_idnamedepartmentsalary
1ZaraSupport119161
2DevSupport185810
3NishaOps149591
4RohanSales100762
5NishaSales45904
6MiraFinance199640
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.employees10 rows
emp_id (int)name (string)department (string)salary (int)
1ZaraSupport119161
2DevSupport185810
3NishaOps149591
4RohanSales100762
5NishaSales45904
6MiraFinance199640
7ReyanshData104605
8DevDesign120965
9AaravData123182
10AnayaOps60695

Return these columns

emp_id(int)
name(string)
salary(int)

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.