# See what worked

best_and_worst ranks decisions by how far their numbers moved over a period.

## best_and_worst

`best_and_worst` lists which decisions did best and worst by the numbers over a period, the whole record by default, and by how much. Each move is measured against the metric's own ordinary swing: 2 means twice what the metric moves in an ordinary stretch.

Every decision with a measured effect is ranked, with the verdict and whether the move stayed within the usual swing. Use `best_and_worst` for questions like "how did we do this quarter", not to judge a person.

| Input | What to send |
|---|---|
| `from` | The first day, as YYYY-MM-DD |
| `to` | The last day, as YYYY-MM-DD |
| `n` | How many best and how many worst: 3 unless set, 10 at most |
| `by` | `decided` to pick decisions by when they were made, the default, or `settled` by when they were judged |
