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

single

bookChallenge: Generate Weekly Summary Table

Veeg om het menu te tonen

Taak

Veeg om te beginnen met coderen

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.

Oplossing

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 12
single

single

Vraag AI

expand

Vraag AI

ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

some-alt