From 76ac2e80d8ec18ad94fd13fd8d42d922b8809a18 Mon Sep 17 00:00:00 2001 From: haydenanderson <107340527+haydena7@users.noreply.github.com> Date: Fri, 4 Sep 2026 11:04:23 -0600 Subject: [PATCH] docs: correct tolerance default attribution --- docs/guides/features/tolerances.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/features/tolerances.ipynb b/docs/guides/features/tolerances.ipynb index 76eb045..06e07e7 100644 --- a/docs/guides/features/tolerances.ipynb +++ b/docs/guides/features/tolerances.ipynb @@ -34,7 +34,7 @@ "source": [ "## Default behavior\n", "\n", - "By default, `diffly` uses `abs_tol=1e-08` and `rel_tol=1e-05` for floating point comparisons, matching Python's `math.isclose` defaults. Temporal types (dates, datetimes) are compared exactly (`abs_tol_temporal=0`). This means tiny floating point rounding is automatically ignored, but even a one-second timestamp difference will be flagged.\n", + "By default, `diffly` uses `abs_tol=1e-08` and `rel_tol=1e-05` for floating point comparisons, matching the defaults of `polars.testing.assert_frame_equal` (note these are looser than the defaults of `polars.Expr.is_close` and Python's `math.isclose`). Temporal types (dates, datetimes) are compared exactly (`abs_tol_temporal=0`). This means tiny floating point rounding is automatically ignored, but even a one-second timestamp difference will be flagged.\n", "\n", "In our scenario, the `total` column has some values that differ only at the 10th decimal place due to how the totals were calculated in each system:" ]