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.
Opgave
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).
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 3. Kapitel 5
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Awesome!
Completion rate improved to 3.45
The Most Profitable Periods
Stryg for at vise menuen
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.
Opgave
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).
Løsning
Var alt klart?
Tak for dine kommentarer!
Awesome!
Completion rate improved to 3.45Sektion 3. Kapitel 5
single