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

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.

Tarefa

  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).

Tudo estava claro?

Seção 3. Capítulo 5
toggle bottom row
course content

Conteúdo do Curso

Analyzing and Visualizing Real-World Data

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.

Tarefa

  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).

Tudo estava claro?

Seção 3. Capítulo 5
toggle bottom row
some-alt