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)
319 B
319 B
| 1 | Date | Capital Gains |
|---|---|---|
| 2 | 2007-12-19 | 4.470000 |
| 3 | 2018-11-20 | 2.273000 |
| 4 | 1998-09-30 | 0.244000 |
| 5 | 2001-12-14 | 0.931000 |
| 6 | 2019-11-21 | 1.442000 |
| 7 | 2020-11-24 | 1.041000 |
| 8 | 2022-11-22 | 0.306000 |
| 9 | 2023-12-07 | 0.207000 |
| 10 | 1996-12-03 | 0.115000 |
| 11 | 1999-11-11 | 0.539000 |
| 12 | 2008-12-17 | 0.705000 |
| 13 | 1997-12-10 | 1.129000 |
| 14 | 2000-11-15 | 3.550000 |
| 15 | 2021-11-23 | 6.875000 |
| 16 | 2024-12-10 | 2.524000 |