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)
This commit is contained in:
gmp
2026-08-31 21:59:25 -04:00
parent e20b2e30cb
commit bb8e39605e
8198 changed files with 585233 additions and 6 deletions
+54
View File
@@ -0,0 +1,54 @@
Date,Dividends
2015-06-24,0.164000
2016-12-21,0.164000
2017-09-21,0.153000
2019-06-14,0.010000
2022-06-24,0.553000
2025-09-25,0.501000
2012-06-21,0.110000
2015-12-23,0.105000
2011-12-21,0.108000
2025-12-12,0.536000
2021-12-23,1.232000
2023-12-22,0.748000
2024-06-27,0.413000
2026-03-26,0.232000
2020-09-24,0.175000
2013-06-21,0.112000
2014-09-23,0.175000
2019-12-13,0.239000
2014-12-23,0.171000
2015-09-23,0.136000
2017-06-22,0.187000
2021-09-23,0.202000
2013-12-18,0.054000
2014-06-24,0.085000
2018-09-14,0.300000
2011-06-21,0.099000
2012-12-21,0.112000
2016-09-21,0.188000
2018-12-18,0.058000
2020-06-25,0.226000
2020-12-24,0.270000
2023-06-27,0.453000
2024-12-13,0.427000
2019-09-25,0.174000
2020-03-26,0.050000
2026-06-25,0.577000
2016-06-22,0.159000
2024-09-26,0.401000
2022-09-23,0.441000
2022-12-23,0.197000
2023-09-22,0.401000
2013-03-21,0.022000
2017-12-21,0.523000
2012-09-21,0.089000
2022-03-25,0.051000
2023-03-24,0.049000
2025-03-27,0.080000
2013-09-20,0.098000
2014-03-25,0.104000
2018-06-21,0.183000
2021-06-24,0.191000
2024-03-21,0.044000
2025-06-26,0.569000
1 Date Dividends
2 2015-06-24 0.164000
3 2016-12-21 0.164000
4 2017-09-21 0.153000
5 2019-06-14 0.010000
6 2022-06-24 0.553000
7 2025-09-25 0.501000
8 2012-06-21 0.110000
9 2015-12-23 0.105000
10 2011-12-21 0.108000
11 2025-12-12 0.536000
12 2021-12-23 1.232000
13 2023-12-22 0.748000
14 2024-06-27 0.413000
15 2026-03-26 0.232000
16 2020-09-24 0.175000
17 2013-06-21 0.112000
18 2014-09-23 0.175000
19 2019-12-13 0.239000
20 2014-12-23 0.171000
21 2015-09-23 0.136000
22 2017-06-22 0.187000
23 2021-09-23 0.202000
24 2013-12-18 0.054000
25 2014-06-24 0.085000
26 2018-09-14 0.300000
27 2011-06-21 0.099000
28 2012-12-21 0.112000
29 2016-09-21 0.188000
30 2018-12-18 0.058000
31 2020-06-25 0.226000
32 2020-12-24 0.270000
33 2023-06-27 0.453000
34 2024-12-13 0.427000
35 2019-09-25 0.174000
36 2020-03-26 0.050000
37 2026-06-25 0.577000
38 2016-06-22 0.159000
39 2024-09-26 0.401000
40 2022-09-23 0.441000
41 2022-12-23 0.197000
42 2023-09-22 0.401000
43 2013-03-21 0.022000
44 2017-12-21 0.523000
45 2012-09-21 0.089000
46 2022-03-25 0.051000
47 2023-03-24 0.049000
48 2025-03-27 0.080000
49 2013-09-20 0.098000
50 2014-03-25 0.104000
51 2018-06-21 0.183000
52 2021-06-24 0.191000
53 2024-03-21 0.044000
54 2025-06-26 0.569000