Problems / Employee Salary Bands / Editorial
This problem combines conditional logic with aggregation.
CASE WHEN
F.when().otherwise()
It requires combining two concepts — conditional column creation and grouped aggregation — in a single query. The PySpark version specifically requires chaining .when() calls correctly.
.when()
Solve Employee Salary Bands yourself →