From 08a599f091b4a0c7ed6194dfa0086996708addaf Mon Sep 17 00:00:00 2001 From: Johnny Wilson Dougherty Date: Sat, 28 Nov 2026 22:39:04 +0530 Subject: [PATCH] docs: remove the duplicate "Known differences" section from the README #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. --- README.md | 16 ---------------- tests/test_known_differences.py | 4 ++-- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index d2f7942..70180f8 100644 --- a/README.md +++ b/README.md @@ -174,22 +174,6 @@ If you need the same result on both backends, use the same backend for planning --- -## Known differences between pandas and Polars - -The two backends do not give the same result in these cases. -`tests/test_known_differences.py` checks that each row is still true. - -| Case | pandas | Polars | -|---|---|---| -| Currency strings such as `"$1,200"` | Parses them to `float64` (`parse_currency`) | Keeps them as strings | -| Blank strings such as `""` or `" "` | Strips them to null | Strips them to `""` | -| Fill values and IQR fences | Computed after earlier actions, for example after `drop_nulls` or `drop_duplicates` | Computed on the input frame, in one planning query | -| Replaying a plan on new data | Uses the fill value stored in the plan | Computes the fill value again on the new data | -| `report.original_rows` and `report.cleaned_rows` for a `LazyFrame` | Not applicable | `0`, because counting rows would read the data | -| Row order after `drop_duplicates` | Keeps the first row of each group, in order | Does not keep the order (`maintain_order=False`) | - ---- - ## Upgrading from v2.x If you are upgrading from `freshdata` 2.x (`freshdata-cleaner`), run the included `libcst` codemod to rewrite legacy wrappers (`clean_csv`, `fill_missing`, `compare_plans`, etc.) into the v3.0 core API: diff --git a/tests/test_known_differences.py b/tests/test_known_differences.py index 50d36b1..15d5b44 100644 --- a/tests/test_known_differences.py +++ b/tests/test_known_differences.py @@ -25,8 +25,8 @@ def _both(data, cfg=None): fd.apply_plan(pldf, fd.suggest_plan(pldf, cfg), cfg)) -def test_readme_has_the_section(): - assert "## Known differences between pandas and Polars" in README +def test_readme_has_the_section_once(): + assert README.count("## Known differences between pandas and Polars") == 1 def test_currency_strings():