Challenge: Summarize and Report Findings
Oppgave
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.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 3. Kapittel 2
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Suggested prompts:
Can you explain this in simpler terms?
What are some examples related to this topic?
Where can I learn more about this?
Fantastisk!
Completion rate forbedret til 5.56
Challenge: Summarize and Report Findings
Sveip for å vise menyen
Oppgave
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.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 3. Kapittel 2
single