Avsnitt 1. Kapitel 10
single
Challenge: Report Key Operational Metrics
Svep för att visa menyn
Uppgift
Svep för att börja koda
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).
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 10
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal