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
+57
View File
@@ -0,0 +1,57 @@
Date,Dividends
2019-06-25,0.390000
2023-12-01,0.202000
2026-06-01,1.441000
2021-09-22,5.608000
2023-09-01,0.125000
2025-11-03,0.083000
2021-11-01,6.173000
2023-08-01,0.116000
2025-04-01,0.095000
2025-07-01,0.392000
2026-05-01,1.186000
2026-07-01,0.241000
2021-12-23,6.028000
2022-07-01,1.354000
2022-08-01,0.837000
2025-02-03,0.314000
2025-08-01,0.106000
2025-10-01,0.110000
2026-02-02,0.034000
2022-04-01,1.529000
2025-12-24,0.082000
2026-03-02,0.265000
2026-08-03,1.315000
2021-06-22,3.001000
2021-12-01,7.165000
2022-02-01,0.122000
2023-05-01,0.097000
2024-12-02,0.099000
2022-03-01,0.421000
2022-06-01,1.595000
2023-11-01,0.481000
2024-07-01,0.228000
2024-11-01,0.118000
2025-06-02,0.085000
2023-03-01,0.056000
2024-09-03,0.117000
2024-12-23,0.195000
2025-05-01,0.098000
2018-12-26,0.495000
2023-07-03,0.121000
2019-09-25,0.325000
2023-06-01,0.116000
2024-05-01,0.257000
2022-05-02,1.074000
2023-10-02,1.019000
2024-02-01,0.218000
2025-03-03,0.322000
2026-04-01,0.873000
2017-12-26,6.675000
2020-03-25,0.055000
2019-03-20,0.195000
2019-12-24,0.130000
2023-04-03,0.109000
2024-10-01,0.142000
2022-09-01,0.828000
2025-09-02,0.097000
1 Date Dividends
2 2019-06-25 0.390000
3 2023-12-01 0.202000
4 2026-06-01 1.441000
5 2021-09-22 5.608000
6 2023-09-01 0.125000
7 2025-11-03 0.083000
8 2021-11-01 6.173000
9 2023-08-01 0.116000
10 2025-04-01 0.095000
11 2025-07-01 0.392000
12 2026-05-01 1.186000
13 2026-07-01 0.241000
14 2021-12-23 6.028000
15 2022-07-01 1.354000
16 2022-08-01 0.837000
17 2025-02-03 0.314000
18 2025-08-01 0.106000
19 2025-10-01 0.110000
20 2026-02-02 0.034000
21 2022-04-01 1.529000
22 2025-12-24 0.082000
23 2026-03-02 0.265000
24 2026-08-03 1.315000
25 2021-06-22 3.001000
26 2021-12-01 7.165000
27 2022-02-01 0.122000
28 2023-05-01 0.097000
29 2024-12-02 0.099000
30 2022-03-01 0.421000
31 2022-06-01 1.595000
32 2023-11-01 0.481000
33 2024-07-01 0.228000
34 2024-11-01 0.118000
35 2025-06-02 0.085000
36 2023-03-01 0.056000
37 2024-09-03 0.117000
38 2024-12-23 0.195000
39 2025-05-01 0.098000
40 2018-12-26 0.495000
41 2023-07-03 0.121000
42 2019-09-25 0.325000
43 2023-06-01 0.116000
44 2024-05-01 0.257000
45 2022-05-02 1.074000
46 2023-10-02 1.019000
47 2024-02-01 0.218000
48 2025-03-03 0.322000
49 2026-04-01 0.873000
50 2017-12-26 6.675000
51 2020-03-25 0.055000
52 2019-03-20 0.195000
53 2019-12-24 0.130000
54 2023-04-03 0.109000
55 2024-10-01 0.142000
56 2022-09-01 0.828000
57 2025-09-02 0.097000