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.
Taak
Swipe to start coding
- Group the observations in the
df
dataframe by the'Date'
column values. - Select the
'Weekly_Sales'
column. - Calculate the total (sum) for each group.
- Sort values in descending order (not ascending).
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 3. Hoofdstuk 5
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Awesome!
Completion rate improved to 3.45
The Most Profitable Periods
Veeg om het menu te tonen
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.
Taak
Swipe to start coding
- Group the observations in the
df
dataframe by the'Date'
column values. - Select the
'Weekly_Sales'
column. - Calculate the total (sum) for each group.
- Sort values in descending order (not ascending).
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Awesome!
Completion rate improved to 3.45Sectie 3. Hoofdstuk 5
single