Skip to content

Conversation

@Scottan
Copy link

@Scottan Scottan commented Nov 14, 2025

Merge to close #51

I also changed "data" to "df" and used more consistent terminology for Dataframe in the chapter

Merge to close #50

Updated code blocks in the pandas essential episode to use '1972' instead of 'gdpPercap_1972'.
@github-actions
Copy link

github-actions bot commented Nov 14, 2025

Thank you!

Thank you for your pull request 😃

🤖 This automated message can help you check the rendered files in your submission for clarity. If you have any questions, please feel free to open an issue in {sandpaper}.

If you have files that automatically render output (e.g. R Markdown), then you should check for the following:

  • 🎯 correct output
  • 🖼️ correct figures
  • ❓ new warnings
  • ‼️ new errors

Rendered Changes

🔍 Inspect the changes: https://github.com/UoMResearchIT/programming_with_python/compare/md-outputs..md-outputs-PR-55

The following changes were observed in the rendered markdown documents:

 07-pandas_essential.md | 76 +++++++++++++++++++++++++-------------------------
 md5sum.txt             |  2 +-
 2 files changed, 39 insertions(+), 39 deletions(-)
What does this mean?

If you have source files that require output and figures to be generated (e.g. R Markdown), then it is important to make sure the generated figures and output are reproducible.

This output provides a way for you to inspect the output in a diff-friendly manner so that it's easy to see the changes that occur due to new software versions or randomisation.

⏱️ Updated at 2025-11-14 11:27:30 +0000

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the pandas tutorial to improve consistency by renaming the main variable from data to df and standardizing terminology around "DataFrame". It also fixes issue #51 by updating column label references in a challenge question to reflect the cleaned column names (from 'gdpPercap_1972' to '1972').

  • Renamed the main DataFrame variable from data to df throughout the tutorial
  • Standardized capitalization and usage of "DataFrame" terminology
  • Updated challenge question to use the correct column label format after cleanup ('1972' instead of 'gdpPercap_1972')
Comments suppressed due to low confidence (1)

episodes/07-pandas_essential.md:1

  • The str.strip() method is incorrect here. The strip() method removes characters from the beginning and end of a string, not as a prefix. Since 'gdpPercap_' is a prefix, this should use str.replace('gdpPercap_', '') or str.lstrip('gdpPercap_') instead. With strip(), the columns would incorrectly have individual characters removed.
---

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

Scottan and others added 2 commits November 14, 2025 11:25
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
github-actions bot pushed a commit that referenced this pull request Nov 14, 2025
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.

Replace "gdpPercap_1972" with "1972" in "Plotting GDP increases with time" section Replace data with df in the pandas chapter

2 participants