You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- P2 (wooldridge): Extract shared `_warn_and_fill_nan_cohort(df, cohort,
stacklevel)` helper used by both `_filter_sample` and `fit()`. Removes
the copy-paste warning block that was flagged as a future drift risk.
- P2 (tests): Add `test_inf_first_treat_warning_counts_rows_not_units`
on a 4-unit x 3-period panel. 2 units carry inf across all 3 periods
(6 inf rows, 2 inf units) — the warning must report 6, not 2, because
`.replace(inf, 0)` is row-level.
- P3 (utils wording): The `_compute_outcome_changes` excess-drop warning
said "gaps or NaN outcomes" but the code actually counts all NaN
first-differences. Rephrased to "additional NaN first-differences
(e.g. NaN outcomes or unit-period gaps upstream)" so the message
doesn't over-claim what the helper can detect.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments