Skip to content

Sync python-rounding with the updated tutorial - #864

Merged
martin-martin merged 2 commits into
masterfrom
maintenance/python-rounding-20260926
Oct 12, 2026
Merged

martin-martin merged 2 commits into
masterfrom
maintenance/python-rounding-20260926

Conversation

@realpython-bot

Copy link
Copy Markdown
Collaborator

Companion to the maintenance update of How to Round Numbers in Python.

What changed

  • Added requirements.txt pinning the tutorial's tested versions: numpy==2.5.3, pandas==3.0.6 (the article's dependencies field was bumped from numpy 2.1.3 / pandas 2.2.3 / Python 3.13 to numpy 2.5.3 / pandas 3.0.6 / Python 3.14).
  • README: added a Requirements section stating the floor (Python 3.12 or later, from numpy 2.5.3's Requires-Python) and the install command.
  • The code in rounding.py and rounding_numpy.py already matches the article; unchanged.

Links

Verification

  • Fresh venv on Python 3.14.6 with numpy==2.5.3, pandas==3.0.6: both scripts executed and every function exercised on floats, NumPy arrays, and a pandas Series with expected results.
  • uvx ruff@0.14.1 format --check and uvx ruff@0.14.1 check on python-rounding: clean.

🤖 Generated with Claude Code

@martin-martin
martin-martin merged commit a995c56 into master Oct 12, 2026
1 check passed
@martin-martin
martin-martin deleted the maintenance/python-rounding-20260926 branch October 12, 2026 10:10
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