From the course: PySpark Essential Training: Introduction to Building Data Pipelines
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Challenge: Querying a DataFrame - Python Tutorial
From the course: PySpark Essential Training: Introduction to Building Data Pipelines
Challenge: Querying a DataFrame
(upbeat music) - [Instructor] Okay, here's your challenge. Write a query combining sort, select, and filter that shows all non-airport rides with exactly one passenger. Select only the trip distance and total amount columns. Make sure to sort the resulting dataframe by the trip distance in descending order. This quick challenge should only take you a few minutes to complete. Type your code into your Colab notebook and then move on to the next video where I'll share my solution.