Skip to content

Sync pandas-fast-flexible-intuitive with the updated tutorial - #857

Open
realpython-bot wants to merge 1 commit into
masterfrom
maintenance/fast-flexible-pandas-20260921
Open

realpython-bot wants to merge 1 commit into
masterfrom
maintenance/fast-flexible-pandas-20260921

Conversation

@realpython-bot

Copy link
Copy Markdown
Collaborator

Companion sync for the maintenance update of "Fast, Flexible, Easy and Intuitive: How to Speed Up Your pandas Projects".

The tutorial's dependencies field moved from pandas==0.23.3 / python==3.7 to pandas==3.0.6 / python==3.14, so this folder needed to catch up.

What changed

  • requirements.txt (new) — pins the versions the article now targets: pandas==3.0.6, numpy==2.5.3. The folder had no file a reader could install from.
  • README.md — the sample output was recorded on Python 3.6.6 / pandas 0.23.2 in 2018. Replaced with a real run on Python 3.14.6 / pandas 3.0.6, and added the install step for the new requirements.txt.
  • tutorial/__main__.py — the comment above convert() said "conversion of object dtype to datetime". pandas 3.0 enables a dedicated string dtype by default, so read_csv() now yields str, not object. The article's prose and df.dtypes output were updated the same way.

No behaviour changes: every function in __main__.py runs unmodified on pandas 3.0.6.

How it was verified

  • Fresh venv on Python 3.14.6 with the new pins, then python -m tutorial end to end — exit 0, all eight timing functions ran.
  • ruff@0.14.1 format --check pandas-fast-flexible-intuitive → 3 files already formatted.
  • ruff@0.14.1 check pandas-fast-flexible-intuitive → all checks passed.
  • .github/workflows/dircheck.py → passed.

Links

🤖 Generated with Claude Code

…ast, Flexible, Easy and Intuitive: How to Speed Up Your pandas Projects'
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.

2 participants