deps: widen pandas pin to <4 (pandas 3.0 compatible)#21
Merged
Conversation
The pandas>=1.5,<3 ceiling was the last blocking version pin (mirrors the old sklearn <1.9). The code is already pandas-3 compatible -- no changes needed: no applymap/df.append (removed in 3.0), a single inplace=True on a fresh frame (not a Copy-on-Write footgun), no object-dtype assumptions, and no new string- dtype breakage. Verified under pandas 3.0.3: fast suite 2177, integration incl. golden snapshot 34, filter path clean with Future/DeprecationWarning as errors, full clean-state 2219 passed. Widen to pandas>=1.5,<4 (keep a conservative major-version ceiling, as with scikit-learn<2). CI now installs the latest 3.x via the range, so pandas 3 is exercised on every run -- the durable regression guard. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
The
pandas>=1.5,<3ceiling was the last blocking version pin (the same class as the sklearn<1.9pin removed earlier). pandas 3.0.3 is available.Finding: no code changes needed
The codebase is already pandas-3 compatible. Static scan + runtime verification:
applymap/df.append/Series.append(removed in 3.0).inplace=True, on a freshly-built local frame (results.sort_values) — not a Copy-on-Write footgun.object-dtype assumptions; no breakage from the new default string dtype.FutureWarning/DeprecationWarningtreated as errors.Verification under pandas 3.0.3
Change
pandas>=1.5,<3→pandas>=1.5,<4(conservative<major+1ceiling, matchingscikit-learn<2). CI installs the latest 3.x via the range, so pandas 3 is now exercised on every run — the durable regression guard, no extra test needed.🤖 Generated with Claude Code