[Regression] Add Seaborn data visualization examples to the Data lesson#1002
Merged
Conversation
Copilot
AI
changed the title
[WIP] Add data visualization examples using Matplotlib and Seaborn
[Regression] Add Seaborn data visualization examples to the Data lesson
Jul 2, 2026
leestott
approved these changes
Jul 2, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the 2-Regression/2-Data lesson to include hands-on Seaborn visualization examples, addressing the prior gap where the lesson referenced Seaborn in the assignment without demonstrating it in the curriculum.
Changes:
- Added a new Seaborn exercise section to the lesson README (relational plots, categorical bar plots, correlation heatmap, and a Matplotlib vs Seaborn comparison).
- Updated learning objectives and the challenge prompt to include Seaborn alongside Matplotlib.
- Updated the solution notebook to import Seaborn and include matching Seaborn plotting cells aligned with the README.
Show a summary per file
| File | Description |
|---|---|
| 2-Regression/2-Data/README.md | Adds a Seaborn exercise section and updates objectives/challenge to include Seaborn visualization. |
| 2-Regression/2-Data/solution/notebook.ipynb | Adds import seaborn as sns and Seaborn plotting cells mirroring the README instructions. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/6 changed files
- Comments generated: 0
- Review effort level: Low
leestott
approved these changes
Jul 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The
2-Regression/2-Datalesson taught Matplotlib and its assignment asked learners to compare Matplotlib with Seaborn — but Seaborn was never actually demonstrated anywhere in the curriculum. This adds a hands-on Seaborn section to that lesson, closing the gap using the existing pumpkin dataset.sns.relplot) for correlationssns.catplot) for distributionssns.heatmap), noting the same chart backs confusion matrices in classificationimport seaborn as snsplus matching runnable cells kept in sync with the READMErelplot,lineplot,catplot,heatmap) generated from the actual lesson data to match existing lesson styleThe heatmap discussion intentionally highlights that
Monthshows weak linear correlation despite the visible seasonal peak — reinforcing that the coefficient misses non-linear patterns.translations/untouched (auto-generated).Track translation progress by opening a draft PR using this template and checking off the translations completed
Each lesson includes a translation of the README.md and the Assignment.md file, if available. Only mark the lesson complete if both those files are translated per lesson, please.
1
1-1
1-2
1-3
2
2-1
2-2
2-3
2-4
3
3-1
3-2
3-3
4
4-1
5
5-1
5-2
5-3
6
6-1
6-2
6-3
6-4
6-5
6-6
7
7-1
7-2
7-3
7-4
Quiz (add a file in the quiz-app with all localizations)