Skip to content

Commit 707b796

Browse files
authored
docs: Correct tolerance default attribution (#58)
1 parent dbe91d8 commit 707b796

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs/guides/features/tolerances.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"source": [
3535
"## Default behavior\n",
3636
"\n",
37-
"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",
37+
"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",
3838
"\n",
3939
"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:"
4040
]

0 commit comments

Comments
 (0)