Section 1. Chapitre 10
single
Challenge: Report Key Operational Metrics
Glissez pour afficher le menu
Tâche
Glissez pour commencer à coder
Given a DataFrame with columns event_timestamp (datetime) and processing_duration (seconds), calculate and print a summary report of average processing time and throughput (events per hour).
- Compute the average of the
processing_durationcolumn. - Determine the total number of hours between the earliest and latest
event_timestampvalues. - Calculate throughput as the number of rows in the DataFrame divided by the total hours.
- Print a summary report showing average processing time (rounded to two decimal places) and throughput (rounded to two decimal places).
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 10
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion