Sync pandas-fast-flexible-intuitive with the updated tutorial - #857
Open
realpython-bot wants to merge 1 commit into
Open
realpython-bot wants to merge 1 commit into
realpython-bot wants to merge 1 commit into
Conversation
…ast, Flexible, Easy and Intuitive: How to Speed Up Your pandas Projects'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Companion sync for the maintenance update of "Fast, Flexible, Easy and Intuitive: How to Speed Up Your pandas Projects".
The tutorial's
dependenciesfield moved frompandas==0.23.3/python==3.7topandas==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 newrequirements.txt.tutorial/__main__.py— the comment aboveconvert()said "conversion of object dtype to datetime". pandas 3.0 enables a dedicated string dtype by default, soread_csv()now yieldsstr, notobject. The article's prose anddf.dtypesoutput were updated the same way.No behaviour changes: every function in
__main__.pyruns unmodified on pandas 3.0.6.How it was verified
python -m tutorialend 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