Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Generate Regional Sales Report | Automating Reports and Visual Insights
Python Automation for Reports and Visual Insights
Section 1. Chapter 2
single

single

bookChallenge: Generate Regional Sales Report

Swipe to show menu

Task

Swipe to start coding

Create a function that generates a summary of total sales for each region from a sample sales dataset.

  • Create a pandas DataFrame with columns "region" and "sales", using at least three unique region values and several sales amounts.
  • Group the DataFrame by the "region" column.
  • Calculate the total sales for each region.
  • Print the resulting summary table.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 1. Chapter 2
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

some-alt