f/overrides/event-backup/mxwex-capitalGain.csv
Greg Pomerantz bb8e39605e Event-history protection: backup dir, empty-download fallback, docs
Yahoo's 2026 event-feed change (capitalGain events dropped for some
funds; no events at all for terminated tickers) can wipe good event
history on re-download. Defense in depth:

- overrides/event-backup/: last-known-good copy of every dividend/
  capitalGain file (8,192 files, 58 MB); refresh with
  scripts/backup_events.py after each dump update
- data.py event_file(): frozen > data-root (while populated) > backup;
  used by panel reads, verify_official, and the double-listing scanner
- README: capital-gain files are mutual-fund-only in this dump; Yahoo
  has no LT/ST split (tax.py taxes capg at lt_rate; the per-fund split
  would come from fund-company annual tax statements or commercial feeds)
- tests: exact Timestamp .loc keys (pandas 3.x string matching returns a
  Series on large DatetimeIndex)
2026-08-31 21:59:25 -04:00

419 B

1DateCapital Gains
22021-09-070.686000
32024-09-100.524000
42025-09-090.453000
52020-09-080.473000
62020-12-300.158000
72019-12-300.109000
82022-12-290.124000
92023-12-280.059000
102016-09-090.026000
112018-12-280.527000
122022-09-080.834000
132023-09-080.310000
142018-09-110.659000
152019-09-101.139000
162017-09-080.406000
172017-12-280.311000
182021-12-300.526000
192024-12-300.092000
202015-12-300.151000
212016-12-290.180000