Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn The Most Profitable Periods | Analyzing Data
Analyzing and Visualizing Real-World Data

Swipe to show menu

book
The Most Profitable Periods

Good, now we know that the given data are weekly. Let's find out what weeks were the most profitable by comparing the total for each week.

Task

Swipe to start coding

  1. Group the observations in the df dataframe by the 'Date' column values.
  2. Select the 'Weekly_Sales' column.
  3. Calculate the total (sum) for each group.
  4. Sort values in descending order (not ascending).

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 3. ChapterΒ 5
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

close

Awesome!

Completion rate improved to 3.45

book
The Most Profitable Periods

Good, now we know that the given data are weekly. Let's find out what weeks were the most profitable by comparing the total for each week.

Task

Swipe to start coding

  1. Group the observations in the df dataframe by the 'Date' column values.
  2. Select the 'Weekly_Sales' column.
  3. Calculate the total (sum) for each group.
  4. Sort values in descending order (not ascending).

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

close

Awesome!

Completion rate improved to 3.45

Swipe to show menu

some-alt