Uppercase Long Names

Easy
String Ops
Filtering
LinkedIn
Paytm

Uppercase Long Names

Given users(user_id, name), keep rows where length(name) >= 4, add a column name_upper = upper(name), drop name. Sort by user_id asc.

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.users10 rows
user_id (int)name (string)
1Zara
2Xi
3Mira
4Riya
5Mira
6Aryan
7Aarav
8Isha
9Vivaan
10Ishaan

Return these columns

user_id(int)
name_upper(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.