Skip to content

Improve Data Exploration notebook - #368

Merged
Snowwpanda merged 10 commits into
mainfrom
fix/354-data-exploration
Apr 15, 2026
Merged

Snowwpanda merged 10 commits into
mainfrom
fix/354-data-exploration

Conversation

@Snowwpanda

@Snowwpanda Snowwpanda commented Apr 14, 2026 •

Copy link
Copy Markdown
Collaborator

fixes #354

Fixing comments from the issue to the data_eploration notebook. Adding an exercise and fixing a bunch of typos.

despadam and others added 5 commits March 30, 2026 17:50
- Updated the path for the happiness CSV file in the data exploration notebook to reflect the correct directory structure.
- Added hints for visualizing year values in matplotlib plots.
- Improved documentation for data cleaning functions, clarifying the merging process and filling strategies.
- Enhanced test cases to assert the return types and structure of DataFrames in the testing suite for better validation.
- Adjusted layout settings in the helper module to ensure consistent legend sizing in visualizations.
Copilot AI review requested due to automatic review settings April 14, 2026 21:02
@Snowwpanda Snowwpanda linked an issue Apr 14, 2026 that may be closed by this pull request

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the “Introduction: Data exploration” tutorial materials by expanding the learning content (new guided questions + a new exercise) and improving robustness/clarity of the associated autograder tests and plotting helper behavior.

Changes:

  • Added a new “Explore the Dataset” exercise and corresponding pytest coverage.
  • Improved existing tests with clearer return-type assertions and order-independent comparisons.
  • Tweaked Plotly layout helper to keep legend item sizing constant.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
tutorial/tests/test_30_introduction_data_exploration.py Adds a new test_explore_dataset and strengthens several existing tests (type assertions, stable comparisons).
tutorial/data_exploration_helper.py Adjusts Plotly layout to set legend itemsizing to "constant".
30_introduction_data_exploration.ipynb Adds guided exploration + a new exercise section and fixes/rewrites various tutorial text and paths.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread 30_introduction_data_exploration.ipynb Outdated
Comment thread 30_introduction_data_exploration.ipynb Outdated
Comment on lines 625 to +626
"You can identify missing values using `.isna()` or `.isnull()`, and then choose a strategy: `.dropna()` removes rows or columns with missing values, while `.fillna()` replaces them. `.ffill` propagates the last valid observation forward to fill in the missing values.\n",
"For example, `df.ffill` will replace a `NaN` with the value from the previous row which had a non-`Nan`value.\n",
"For example, `df.ffill` will replace a `NaN` with the value from the previous row which had a non-`NaN` value.\n",

Copilot AI Apr 14, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sentence refers to df.ffill (the method object) rather than calling it; as written it’s not accurate. Consider changing it to df.ffill() (and similarly keep .ffill() consistent throughout the paragraph).

Copilot uses AI. Check for mistakes.
Snowwpanda and others added 3 commits April 14, 2026 23:12
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@edoardob90 edoardob90 changed the title Fix/354 data exploration Improve Data Exploration notebook Apr 15, 2026

@yakutovicha yakutovicha left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit of nitpicking, feel free to take or ignore.

Comment thread 30_introduction_data_exploration.ipynb Outdated
Comment thread 30_introduction_data_exploration.ipynb Outdated
Comment thread 30_introduction_data_exploration.ipynb Outdated
Comment thread 30_introduction_data_exploration.ipynb Outdated
Comment thread 30_introduction_data_exploration.ipynb Outdated
Comment thread 30_introduction_data_exploration.ipynb Outdated
Comment thread 30_introduction_data_exploration.ipynb Outdated
Comment thread 30_introduction_data_exploration.ipynb Outdated
Comment thread 30_introduction_data_exploration.ipynb Outdated
Comment thread 30_introduction_data_exploration.ipynb Outdated
despadam
despadam previously approved these changes Apr 15, 2026
Co-authored-by: Aliaksandr Yakutovich <aliaksandr.yakutovich@gmail.com>
@Snowwpanda
Snowwpanda merged commit ddebde6 into main Apr 15, 2026
1 check passed
@Snowwpanda
Snowwpanda deleted the fix/354-data-exploration branch April 15, 2026 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Suggestions to Introduction to Data Exploration notebook

4 participants