Skip to content

Sync python-rounding with the updated tutorial - #864

Open
realpython-bot wants to merge 1 commit into
masterfrom
maintenance/python-rounding-20260926
Open

realpython-bot wants to merge 1 commit 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

…ers in Python

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