Skip to content

Sync pandas-groupby with the updated tutorial - #971

Merged
realpython-bot merged 2 commits into
masterfrom
maintenance/pandas-groupby-20261201
Dec 1, 2026
Merged

realpython-bot merged 2 commits into
masterfrom
maintenance/pandas-groupby-20261201

Conversation

@realpython-bot

Copy link
Copy Markdown
Collaborator

The pandas-groupby folder held only the datasets zip. This adds the code the tutorial ships, as the update draft has it:

  • pandas_legislators.py, pandas_airqual.py, pandas_news.py, pandas_news_performance.py
  • requirements.txt pinned to the article's dependencies (pandas==3.1.1, numpy==2.5.4)
  • README rewritten with the current title, setup (pinned install, unzip into groupby-data/), and usage

Draft: https://realpython.com/pbjt/blog/post/2623/change/
Card: https://trello.com/c/JvtXWw8F

Verified: Python 3.13 venv on the pins, data unzipped into groupby-data/; all three loaders import and reproduce the article's df.tail(), df.dtypes, df.head(), index range, and df.iloc[0] output; pandas_news_performance.py runs (Version 1: 4.08s, Version 2: 0.32s). ruff format --check, ruff check (0.14.1), and dircheck.py pass.

🤖 Generated with Claude Code

realpython-bot and others added 2 commits December 1, 2026 12:47
Add the tutorial's four scripts, a pinned requirements.txt, and a README
with setup and usage.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@realpython-bot
realpython-bot merged commit 4dfbd19 into master Dec 1, 2026
1 check passed
@realpython-bot
realpython-bot deleted the maintenance/pandas-groupby-20261201 branch December 1, 2026 13:21
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.

1 participant