liveBook · Manning

Sales performance

As explained in Starting Data Analytics with Generative AI and Python

Sales performance is the measured level of sales activity or results for products, categories, regions, or periods.

Sales performance measures how strongly products or categories sell, using indicators such as sales volume and revenue. Comparing those indicators across regions turns a broad question—what sells best?—into a practical decision about where to focus inventory, marketing, or investigation. section 3.3.1

Category performance by Brazilian state

Merge product, translation, order, and customer data; group records by English product category and customer state; calculate order counts and summed prices. Bar plots compare categories across states, while heatmaps make regional patterns easier to scan.

Treat the output as evidence to inspect, not an automatic conclusion. Check merged columns and raw records when plotting fails or results look implausible; for example, a missing customer_state column can stop visualization.

How Starting Data Analytics with Generative AI and Python covers it

How deep it goes
Demonstrates data merging, grouped calculations, bar plots, and heatmaps, while stopping short of causal explanation.
Examples
Uses Brazilian states, translated product categories, grouped order counts, summed prices, bar plots, and heatmaps.
What it assumes
Assumes tabular product, order, customer, and translation data, while demonstrating the required merges and aggregations.
What you can do after
Diagnose regional category patterns with merged pandas data and seaborn visualizations, then validate unexpected outputs against source records.
How it connects
Connects descriptive analysis with data merging, sales volume, revenue, product categories, and regional analysis.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Starting Data Analytics with Generative AI and Python. The section links point to the parts of the book it draws on.