Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Challenge: Generate Weekly Summary Table | Automating Reports and Visual Insights
Python Automation for Reports and Visual Insights
Abschnitt 1. Kapitel 12
single

single

bookChallenge: Generate Weekly Summary Table

Swipe um das Menü anzuzeigen

Aufgabe

Wischen, um mit dem Codieren zu beginnen

Write a function that takes a list of sales records, each with a sales amount and a timestamp, and summarizes total sales by week.

  • Convert the timestamp values to pandas datetime objects.
  • Create a new column that identifies the week for each record.
  • Group the records by week and sum the sales for each group.
  • Return a DataFrame with the weekly totals.

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 12
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