Databricks Spark Developer Associate Practice Questions - Databricks Certified Associate Developer For Apache Spark Exam

Question Number 5


What does this PySpark code do? df.select('name', 'age').filter('age > 18').show()
✔ Correct Answer:
Selects name and age columns, filters rows where age > 18, displays top rows