Engineering Team

Easy
Filtering
Meta
Paytm
Zomato

Engineering Team

Given employees, return rows where department = 'Engineering'. Project emp_id, name and order by emp_id ascending.

Sample input

emp_idnamedepartmentis_active
1RiyaMarketingTrue
2RohanHRFalse
3NishaProductTrue
4SaraSalesTrue
5AanyaProductFalse
6TaraSalesTrue
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)is_active (boolean)
1RiyaMarketingtrue
2RohanHRfalse
3NishaProducttrue
4SaraSalestrue
5AanyaProductfalse
6TaraSalestrue
7VivaanFinancetrue
8MeeraFinancetrue
9PriyaFinancetrue
10KianSupporttrue

Return these columns

emp_id(int)
name(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.