Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Report Key Operational Metrics | Automating Reports and Visual Insights
Python Automation for Reports and Visual Insights
Seksjon 1. Kapittel 10
single

single

bookChallenge: Report Key Operational Metrics

Sveip for å vise menyen

Oppgave

Sveip for å begynne å kode

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_duration column.
  • Determine the total number of hours between the earliest and latest event_timestamp values.
  • 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

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 10
single

single

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

some-alt