---
name: dazdiff
description: >
  Compare two tables value by value, from Python or the command line. Use when writing Python code that uses the dazdiff package.
license: MIT
compatibility: Requires Python >=3.10.
---

# dazdiff

Compare two tables value by value, from Python or the command line.

## Installation

```bash
pip install dazdiff
```

## API overview

### Compare

Compare two tables and judge the result.

- `diff_table`: Compare two tables value by value
- `is_matching`: ``True`` when every row of a :func:`diff_table` result is ``same``: no value
- `diff_summary`: Condense a :func:`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 :func:`diff_table` result as a bounded text report
- `DiffReport`: What :func:`diff_report` found; ``str(report)`` draws it in Unicode and

### Testing

Use a comparison as a test assertion.

- `assert_table_equal`: Assert that ``actual`` matches ``expected``, for use in tests

### Helpers and conditions

Name normalization, and the errors, notes and warnings dazdiff raises.

- `normalize_names`: Normalize column names as :func:`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

## Resources

- [Full documentation](https://pedrobtz.github.io/py-dazdiff/)
- [llms.txt](llms.txt) — Indexed API reference for LLMs
- [llms-full.txt](llms-full.txt) — Comprehensive documentation for LLMs
