Skip to content

docs: list the known differences between the pandas and Polars backends - #545

Merged
JohnnyWilson16 merged 1 commit into
mainfrom
docs/backend-differences-jwd
Nov 28, 2026
Merged

JohnnyWilson16 merged 1 commit into
mainfrom
docs/backend-differences-jwd

Conversation

@JohnnyWilson16

Copy link
Copy Markdown
Contributor

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

  • New README section "Known differences between pandas and Polars" with six rows: currency strings, blank strings, fill values and IQR fences, replaying a plan, 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. 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):

FAILED tests/test_known_differences.py::test_readme_has_the_section - Asserti...
FAILED tests/test_known_differences.py::test_currency_strings - AssertionErro...
...
7 failed in 0.58s

After:

7 passed in 0.53s

Full suite: 116 passed, coverage 96.18%. ruff check . is clean. The README blocks run with exit 0. mkdocs build --strict exits 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.

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.
@coderabbitai

coderabbitai Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 37f28591-fa5c-49d1-95f8-510e2b984a6e
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@JohnnyWilson16
JohnnyWilson16 merged commit 593720a into main Nov 28, 2026
14 checks passed
@JohnnyWilson16
JohnnyWilson16 deleted the docs/backend-differences-jwd branch November 28, 2026 17:07
JohnnyWilson16 added a commit that referenced this pull request Nov 28, 2026
#546)

#545 added the section twice, with the same 6 rows in two wordings.
This keeps the first copy, which also tells the reader what to do.
The test now checks that the README has the heading exactly once.
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