Зміст курсу
Dealing with Dates and Times in Python
Dealing with Dates and Times in Python
Challenge: Corrected Metrics Across Taxi Types
Average trip duration across different taxi types looks a bit strange. Every taxi type has an average trip duration greater than 1 hour (most of them even greater than 2 hours), while the average distance is less than 10 km. That's extremely slow!
Let's make some corrections and assume that not all noisy data were removed.
Завдання
- Within the
print
function calculate the proportion of long trips (with aduration
at least of 3 hours). Remember, thatduration
column is measured in seconds. - Calculate average trip distance (
dist_meters
) and trip duration (duration
) across each taxi type (vendor_id
column) for trips with a duration less than 3 hours.
Дякуємо за ваш відгук!
Challenge: Corrected Metrics Across Taxi Types
Average trip duration across different taxi types looks a bit strange. Every taxi type has an average trip duration greater than 1 hour (most of them even greater than 2 hours), while the average distance is less than 10 km. That's extremely slow!
Let's make some corrections and assume that not all noisy data were removed.
Завдання
- Within the
print
function calculate the proportion of long trips (with aduration
at least of 3 hours). Remember, thatduration
column is measured in seconds. - Calculate average trip distance (
dist_meters
) and trip duration (duration
) across each taxi type (vendor_id
column) for trips with a duration less than 3 hours.
Дякуємо за ваш відгук!
Challenge: Corrected Metrics Across Taxi Types
Average trip duration across different taxi types looks a bit strange. Every taxi type has an average trip duration greater than 1 hour (most of them even greater than 2 hours), while the average distance is less than 10 km. That's extremely slow!
Let's make some corrections and assume that not all noisy data were removed.
Завдання
- Within the
print
function calculate the proportion of long trips (with aduration
at least of 3 hours). Remember, thatduration
column is measured in seconds. - Calculate average trip distance (
dist_meters
) and trip duration (duration
) across each taxi type (vendor_id
column) for trips with a duration less than 3 hours.
Дякуємо за ваш відгук!
Average trip duration across different taxi types looks a bit strange. Every taxi type has an average trip duration greater than 1 hour (most of them even greater than 2 hours), while the average distance is less than 10 km. That's extremely slow!
Let's make some corrections and assume that not all noisy data were removed.
Завдання
- Within the
print
function calculate the proportion of long trips (with aduration
at least of 3 hours). Remember, thatduration
column is measured in seconds. - Calculate average trip distance (
dist_meters
) and trip duration (duration
) across each taxi type (vendor_id
column) for trips with a duration less than 3 hours.