feat: add pandas 3 compatibility and fix CI (drop Python 3.9, pin polars <1.38)#3950
Merged
feat: add pandas 3 compatibility and fix CI (drop Python 3.9, pin polars <1.38)#3950
Conversation
…requency: YE`, not sure why
This was referenced Feb 7, 2026
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.
This PR adds pandas 3 compatibility and fixes a cascade of CI failures originally surfaced in #3949. The changes span three areas (1) pandas 3 support, (2) CI infrastructure, and (3) dependency pinning, which are bundled together because each group depends on the others for CI to pass.
Changes
pandas 3 compatibility
strdtype introduced in pandas 3test_pandas_date_parse: loosen assertion to allow equal schemas whenparse_dates=[]df2['o']toobjectafterread_jsonfloat64explicitly so DataFrames matchread_jsonoutputYE/Yfrequency fallback in the test suite: pandas 2 introducedYE; pandas 1.x only knowsY, pandas 3 has deprecatedYfrequencyCI / build infrastructure
metadata.parquetfrom bit-identical comparison inbuild.yml, as Parquet files are not guaranteed to be reproducible across runs (SO ref)ValueError: Invalid frequency: YEthat cannot be cleanly worked around on that version)Dependency pinning
polars < 1.38until thestring_viewregression is resolved upstreamWhy one PR?
The pandas 3 support and CI fixes logically belong in separate PRs, but each group leaves CI in a failing state on its own. They are therefore submitted together so the branch can be merged, with the intention of splitting future follow-up work back into atomic PRs once the baseline is green.