Commit 2df79a0
Self-audit: extend to_dataframe(level=by_path) with cband_lower/upper
Cross-surface gap caught in self-audit: OVERALL `to_dataframe(level=
"event_study")` includes `cband_lower` / `cband_upper` columns
(`chaisemartin_dhaultfoeuille_results.py:1495-1496,1531-1532`) but the
per-path table at `level="by_path"` does not — even though per-path
now produces `cband_conf_int` writes via the new sup-t propagation
block. Cross-surface twin asymmetry the CI reviewer didn't flag;
caught by my own grep audit on `cband_conf_int` consumers.
Fix: extend `to_dataframe(level="by_path")` to emit the same two
columns. Populated for positive-horizon rows of paths with a finite
sup-t crit (read from `path_effects[path]["horizons"][l]
["cband_conf_int"]`); NaN for placebo rows (no joint band per the
positive-only sup-t spec), unbanded paths, and the requested-but-empty
fallback DataFrame (which now includes the columns in its canonical
schema).
Tests added:
- `test_path_sup_t_to_dataframe_emits_cband_columns` — column
presence + per-row alignment with the dict surface
- `test_path_sup_t_to_dataframe_empty_path_fallback_has_cband_columns`
— empty-path fallback DataFrame schema parity
Docs updated:
- REGISTRY.md: `to_dataframe(level="by_path")` integration note added
to the new sup-t Note; canonical column list in the existing
`Note (Phase 3 by_path ...)` block extended with `cband_lower /
cband_upper`
- CHANGELOG entry: surface listing now mentions to_dataframe columns
- `by_path` parameter docstring: rendering surface listing extended
- `path_sup_t_bands` Attributes docstring: rendering surface listing
extended
Suite: 263 tests pass (was 261, +2 new tests).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c0c0d4e commit 2df79a0
5 files changed
Lines changed: 102 additions & 6 deletions
File tree
- diff_diff
- docs/methodology
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
440 | | - | |
| 440 | + | |
441 | 441 | | |
442 | | - | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
443 | 446 | | |
444 | 447 | | |
445 | 448 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
428 | | - | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
429 | 431 | | |
430 | 432 | | |
431 | 433 | | |
| |||
1632 | 1634 | | |
1633 | 1635 | | |
1634 | 1636 | | |
| 1637 | + | |
| 1638 | + | |
1635 | 1639 | | |
1636 | 1640 | | |
1637 | 1641 | | |
| |||
1655 | 1659 | | |
1656 | 1660 | | |
1657 | 1661 | | |
| 1662 | + | |
| 1663 | + | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
| 1667 | + | |
1658 | 1668 | | |
1659 | 1669 | | |
1660 | 1670 | | |
| |||
1668 | 1678 | | |
1669 | 1679 | | |
1670 | 1680 | | |
| 1681 | + | |
| 1682 | + | |
1671 | 1683 | | |
1672 | 1684 | | |
1673 | 1685 | | |
1674 | 1686 | | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
1675 | 1692 | | |
1676 | 1693 | | |
1677 | 1694 | | |
| |||
1685 | 1702 | | |
1686 | 1703 | | |
1687 | 1704 | | |
| 1705 | + | |
| 1706 | + | |
1688 | 1707 | | |
1689 | 1708 | | |
1690 | 1709 | | |
| |||
0 commit comments