Contenido del Curso
Dealing with Dates and Times in Python
Dealing with Dates and Times in Python
Challenge: Average Metrics Across Taxi Types
Great! As for now, we have our dataset cleared from abnormally long rides and rides with ending time preceded starting. As we investigated, it happened because of misusage of 12 and 24-hour formats.
Let's try to find out some interesting insights from this dataset.
Tarea
- Apply
.total_seconds()
function toduration
column usingmap
andlambda
functions. - Group observations by taxi type (
vendor_id
column). Then, choose columnsdist_meters
,duration
, and calculate mean. Then apply functionavg_m
todist_meters
andavg_dur
toduration
. The functions are defined in the code.
¡Gracias por tus comentarios!
Challenge: Average Metrics Across Taxi Types
Great! As for now, we have our dataset cleared from abnormally long rides and rides with ending time preceded starting. As we investigated, it happened because of misusage of 12 and 24-hour formats.
Let's try to find out some interesting insights from this dataset.
Tarea
- Apply
.total_seconds()
function toduration
column usingmap
andlambda
functions. - Group observations by taxi type (
vendor_id
column). Then, choose columnsdist_meters
,duration
, and calculate mean. Then apply functionavg_m
todist_meters
andavg_dur
toduration
. The functions are defined in the code.
¡Gracias por tus comentarios!
Challenge: Average Metrics Across Taxi Types
Great! As for now, we have our dataset cleared from abnormally long rides and rides with ending time preceded starting. As we investigated, it happened because of misusage of 12 and 24-hour formats.
Let's try to find out some interesting insights from this dataset.
Tarea
- Apply
.total_seconds()
function toduration
column usingmap
andlambda
functions. - Group observations by taxi type (
vendor_id
column). Then, choose columnsdist_meters
,duration
, and calculate mean. Then apply functionavg_m
todist_meters
andavg_dur
toduration
. The functions are defined in the code.
¡Gracias por tus comentarios!
Great! As for now, we have our dataset cleared from abnormally long rides and rides with ending time preceded starting. As we investigated, it happened because of misusage of 12 and 24-hour formats.
Let's try to find out some interesting insights from this dataset.
Tarea
- Apply
.total_seconds()
function toduration
column usingmap
andlambda
functions. - Group observations by taxi type (
vendor_id
column). Then, choose columnsdist_meters
,duration
, and calculate mean. Then apply functionavg_m
todist_meters
andavg_dur
toduration
. The functions are defined in the code.