API Reference
Compare
Compare two tables and judge the result.
- diff_table()
-
Compare two tables value by value.
- is_matching()
-
Truewhen every row of adiff_table()result issame: no value - diff_summary()
-
Condense a
diff_table()result per measure. - diff_explain()
-
Which values of the key columns separate the rows that match from those that
Report
Draw a comparison as text.
- diff_report()
-
Lay out a
diff_table()result as a bounded text report. - DiffReport
-
What
diff_report()found;str(report)draws it in Unicode and
Testing
Use a comparison as a test assertion.
- assert_table_equal()
-
Assert that
actualmatchesexpected, for use in tests.
Helpers and conditions
Name normalization, and the errors, notes and warnings dazdiff raises.
- normalize_names()
-
Normalize column names as
diff_table()does. - DiffError
-
The two tables cannot be compared as asked.
- DiffNote
-
An expected side effect, e.g. a column was dropped or a value truncated.
- DiffWarning
-
The answer may be wrong, e.g. rows were paired by arrival order.