Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Generate Weekly Summary Table | Automating Reports and Visual Insights
Python Automation for Reports and Visual Insights
Секція 1. Розділ 12
single

single

bookChallenge: Generate Weekly Summary Table

Свайпніть щоб показати меню

Завдання

Проведіть, щоб почати кодувати

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.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 12
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

some-alt