Data Analysis
Data Visualization in Python with Seaborn
Create production-quality charts — bar, scatter, histogram, box plot, and heatmap — from real data using matplotlib and seaborn with an AI data analyst.
What
This AI Data Analyst workflow loads the Iris dataset from scikit-learn and prepares it for plotting by species. It generates multiple Seaborn and Matplotlib visualizations, including per-feature box plots, a violin plot of petal length, and a scatter plot of petal length vs petal width with regression lines per species. It then combines the charts into a single 2x2 subplot figure with consistent styling and a shared legend.
Who
This is for analysts and students who want a reproducible template for common exploratory data visualizations in Python. It helps users learn how to structure plotting code and compose multiple charts into a clean multi-panel figure.
Tools
- python
- pandas
- scikit-learn
- matplotlib
- seaborn
Outcomes
- Four box plots side by side grouped by species
- Violin plot of petal length by species with inner data points
- Scatter plot of petal length vs petal width with three regression lines
- Clean 2x2 subplot figure with shared legend
Quality Score
7/10
Last scored: Apr 7, 2026
Task Completion: 2/2
ExcellentAll prompted tasks are addressed: iris is loaded via sklearn, box plots per feature by species are created, a petal-length violin plot is created, a petal-length vs petal-width scatter with per-species regression is created, and a combined 2x2 subplot figure is produced.
Execution Correctness: 2/2
ExcellentCode uses standard, valid libraries/APIs (sklearn load_iris(as_frame=True), seaborn boxplot/violinplot/lmplot/regplot, matplotlib subplots) and is likely runnable as written with consistent column names.
Output Quality: 2/3
GoodThe notebook outputs include a 4-axes boxplot figure and a final 2x2 combined figure, and the scatter uses lmplot with hue (3 regression lines). However, the violin plot does not include inner data points (no inner='point'/'stick' or overlayed strip/swarm), and the combined 2x2 figure does not implement a shared legend (it uses an axis legend only).
Reasoning Quality: 1/2
Needs workNarrative explanations are generally aligned with typical Iris patterns and the intended visuals, but the final combination step shows confusion/ambiguity about which four charts to combine and does not explicitly ensure the expected shared-legend/inner-points requirements.
Reliability: 0/1
Needs workWorkflow misses two explicit expected outcomes (violin with inner points; 2x2 with shared legend), indicating fragility against specification details despite otherwise working code.