Skip to content

Add pandas-dataframe materials folder - #1004

Open
realpython-bot wants to merge 1 commit into
masterfrom
materials/pandas-dataframe-20261204
Open

realpython-bot wants to merge 1 commit into
masterfrom
materials/pandas-dataframe-20261204

Conversation

@realpython-bot

Copy link
Copy Markdown
Collaborator

Adds a new pandas-dataframe folder with the companion code for The pandas DataFrame: Make Working With Data Delightful. The article had no materials folder until now.

  • One script per tutorial section, with REPL echoes turned into print() / repr() calls in article order.
  • candidates.py and temperatures.py hold the shared example data. create_scores() rebuilds the DataFrame at the point where the later sections start.
  • requirements.txt pins match the update draft's dependencies (pandas 3.1.2, NumPy 2.5.5, Matplotlib 3.11.2, plus their transitive dependencies). The README floor follows minimum-python (3.12).

The files mirror the update draft: https://realpython.com/pbjt/blog/post/2477/change/
Card: https://trello.com/c/3IJmfZF5

Verification: I ran every script on Python 3.15.2 with the pinned requirements.txt (MPLBACKEND=Agg, with FutureWarnings raised as errors). All exited 0. Every non-blank output line matches the article's REPL output, and data.csv and temperatures.png were written. ruff format --check, ruff check (0.14.1), and dircheck.py all pass.

🤖 Generated with Claude Code

Companion code for The pandas DataFrame: Make Working With Data Delightful,
mirroring the pandas 3.1 update draft.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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