Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära The Best Combination | Analyzing Data
Analyzing and Visualizing Real-World Data

Svep för att visa menyn

book
The Best Combination

Interesting! The most profitable weeks are the second to last weeks of December and November. Now, let's answer the question: What was the best selling week and store? Since our data is already weekly, we won't need to group observations this time.

Uppgift

Swipe to start coding

  1. Select the 'Store', 'Date', and 'Weekly_Sales' columns.
  2. Sort the values of the 'Weekly_Sales' column in descending order (not ascending).
  3. Display the first 10 rows of the obtained dataframe.

Do not worry about syntax, pandas allows splitting methods by lines.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 3. Kapitel 6

Fråga AI

expand
ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

book
The Best Combination

Interesting! The most profitable weeks are the second to last weeks of December and November. Now, let's answer the question: What was the best selling week and store? Since our data is already weekly, we won't need to group observations this time.

Uppgift

Swipe to start coding

  1. Select the 'Store', 'Date', and 'Weekly_Sales' columns.
  2. Sort the values of the 'Weekly_Sales' column in descending order (not ascending).
  3. Display the first 10 rows of the obtained dataframe.

Do not worry about syntax, pandas allows splitting methods by lines.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 3. Kapitel 6
Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Vi beklagar att något gick fel. Vad hände?
some-alt