Challenge: Summarize and Report Findings
Task
Swipe to start coding
You are preparing a data report for a company's regional sales. Use the provided sales_data dataset to create a clear summary table that highlights key statistics for each region.
- Calculate the total sales and average sales for each region.
- Organize your results in a summary table with columns:
region,total_sales, andaverage_sales. - Assign your summary table to a variable named
summary_sales_table. - Do not print or display the table; just create and assign it.
- Do not use the same code structure as shown in previous examples (avoid
summarise(mean_value = mean(value))). - Focus on clarity and concise presentation of the statistics.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 2
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 5.56
Challenge: Summarize and Report Findings
Swipe to show menu
Task
Swipe to start coding
You are preparing a data report for a company's regional sales. Use the provided sales_data dataset to create a clear summary table that highlights key statistics for each region.
- Calculate the total sales and average sales for each region.
- Organize your results in a summary table with columns:
region,total_sales, andaverage_sales. - Assign your summary table to a variable named
summary_sales_table. - Do not print or display the table; just create and assign it.
- Do not use the same code structure as shown in previous examples (avoid
summarise(mean_value = mean(value))). - Focus on clarity and concise presentation of the statistics.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 2
single