From the course: Data Ingestion with Python

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: Clean rides according to ride duration

Challenge: Clean rides according to ride duration - Python Tutorial

From the course: Data Ingestion with Python

Start my 1-month free trial

Challenge: Clean rides according to ride duration

(upbeat music) - [Instructor] Load rides.db to a DataFrame. Add a duration column with ride duration, which is the dropoff time minus the pickup time. Remove all rows that have duration, which is less or equal to a minute. And change all the durations that are more than five hours to the median duration.

Contents