Repository navigation
docs: list the known differences between the pandas and Polars backends - #545
Merged
Merged
Conversation
The README did not say where the backends give different results. A Polars user found out only after the output differed. The new README section lists six cases: currency parsing, blank strings, when fill values and IQR fences are computed, plan replay on new data, LazyFrame report row counts, and row order after drop_duplicates. tests/test_known_differences.py checks that the README names each case and that each difference still exists. A fix that removes a difference makes the test fail, so the README row goes with the fix.
Contributor
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
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.
Cause
The README says that a Polars frame runs "100% inside Polars", but it does not say where Polars gives a different result from pandas. The adoption audit found six differences (Phase 3 parity probes, rechecked on the PyPI 3.0.0 wheel). A Polars user finds them only after the output differs. Launch gate G6 says that the launch posts must name the open differences as known limits. This PR puts them in one place that the posts can link to.
Change
drop_duplicates.tests/test_known_differences.pychecks that the README names each case and that each difference still exists. When a later PR removes a difference, this test fails, and that PR removes the README row too.No library code changes. No public behavior changes.
Check
Before (main
c0d175d):After:
Full suite:
116 passed, coverage 96.18%.ruff check .is clean. The README blocks run with exit 0.mkdocs build --strictexits 0 (the docs home page includes the README).Not fixed here
Each row is a real difference. Fixing them changes public behavior on one of the two backends, so each one needs its own PR and a CHANGELOG entry.