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

single

bookChallenge: Report Key Operational Metrics

Swipe um das Menü anzuzeigen

Aufgabe

Wischen, um mit dem Codieren zu beginnen

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ösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 10
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

some-alt