## diff_explain()


Which values of the key columns separate the rows that match from those that


Usage

``` python
diff_explain(
    d,
    column=None,
    *,
    among="all",
)
```


do not.

With no `column`, one row per key column (and per `metric` when the result has measures): `column`, `n_values`, and how many of its values are `same_only` (every record holding it matches), `differ_only` (none does) or `mixed`. A column `separates` when no value is mixed; one with a different value on every record `identifies` and is ranked last. The others come first, fewest mixed values first, then fewest values.

With a `column` (a key column in either spelling, or `"metric"`), one row per value of it: `n`, `n_same`, `n_changed`, `n_only_x`, `n_only_y` and `class`, most differences first.

For a key column the unit is the row, which matches only when every one of its measures does; with `duplicates="aggregate"` it is the key; for `metric` it is the value. `among="joined"` counts only rows found in both tables, so the explanation is of the changed values alone.
