Exploring Categorical Plots: Boxplot and Violinplot
📖 Scenario: You work as a data analyst for a small bakery. You have collected data on the number of pastries sold each day, categorized by pastry type. You want to understand the sales distribution for each pastry type to help the bakery decide which pastries are popular and how consistent their sales are.
🎯 Goal: Build a Python program that creates a dataset of pastry sales, sets up a configuration for plot style, then uses categorical plots (boxplot and violinplot) to visualize the sales distribution by pastry type.
📋 What You'll Learn
Create a pandas DataFrame with pastry sales data
Set a plot style configuration variable
Use seaborn to create a boxplot and a violinplot
Display the plots
💡 Why This Matters
🌍 Real World
Categorical plots like boxplots and violinplots help businesses understand how different categories perform and how consistent their data is, which supports better decision-making.
💼 Career
Data analysts and scientists use these plots to summarize and communicate insights about grouped data in reports and presentations.
Progress0 / 4 steps