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
+77
View File
@@ -0,0 +1,77 @@
Date,Dividends
2021-05-27,0.013000
2021-11-29,0.017000
2021-12-30,0.021000
2022-01-28,0.011000
2022-12-29,0.042000
2024-07-30,0.039000
2026-02-26,0.032000
2022-07-28,0.024000
2024-11-27,0.032000
2022-06-29,0.023000
2022-11-29,0.031000
2024-12-30,0.067000
2025-09-29,0.035000
2020-09-29,0.012000
2020-12-30,0.019000
2021-02-25,0.012000
2022-02-25,0.014000
2025-11-26,0.031000
2025-03-28,0.037000
2025-06-27,0.035000
2025-10-30,0.040000
2021-01-28,0.011000
2021-06-29,0.015000
2023-05-30,0.032000
2025-02-27,0.032000
2021-08-30,0.013000
2024-05-30,0.037000
2024-06-27,0.030000
2024-10-30,0.038000
2025-12-30,0.047000
2022-04-28,0.018000
2024-08-29,0.035000
2025-05-29,0.038000
2025-08-28,0.034000
2022-03-30,0.022000
2024-01-30,0.022000
2024-03-27,0.033000
2026-07-30,0.038000
2023-11-29,0.039000
2025-01-30,0.034000
2020-12-10,0.045000
2021-10-28,0.014000
2022-08-30,0.027000
2023-01-30,0.019000
2020-07-30,0.010000
2023-03-30,0.034000
2024-04-29,0.036000
2025-04-29,0.039000
2026-05-28,0.033000
2020-11-27,0.013000
2021-12-16,0.192000
2023-07-28,0.032000
2023-12-28,0.052000
2023-02-27,0.027000
2023-06-29,0.036000
2023-10-30,0.035000
2025-07-30,0.041000
2020-08-28,0.012000
2021-07-29,0.015000
2021-09-29,0.012000
2022-09-29,0.025000
2026-04-29,0.036000
2020-06-29,0.003000
2022-05-27,0.019000
2024-09-27,0.032000
2026-01-29,0.033000
2021-03-30,0.016000
2022-10-28,0.028000
2023-08-30,0.036000
2024-02-28,0.028000
2026-03-30,0.037000
2026-06-29,0.033000
2020-10-29,0.014000
2021-04-29,0.014000
2023-04-27,0.029000
2023-09-28,0.032000
1 Date Dividends
2 2021-05-27 0.013000
3 2021-11-29 0.017000
4 2021-12-30 0.021000
5 2022-01-28 0.011000
6 2022-12-29 0.042000
7 2024-07-30 0.039000
8 2026-02-26 0.032000
9 2022-07-28 0.024000
10 2024-11-27 0.032000
11 2022-06-29 0.023000
12 2022-11-29 0.031000
13 2024-12-30 0.067000
14 2025-09-29 0.035000
15 2020-09-29 0.012000
16 2020-12-30 0.019000
17 2021-02-25 0.012000
18 2022-02-25 0.014000
19 2025-11-26 0.031000
20 2025-03-28 0.037000
21 2025-06-27 0.035000
22 2025-10-30 0.040000
23 2021-01-28 0.011000
24 2021-06-29 0.015000
25 2023-05-30 0.032000
26 2025-02-27 0.032000
27 2021-08-30 0.013000
28 2024-05-30 0.037000
29 2024-06-27 0.030000
30 2024-10-30 0.038000
31 2025-12-30 0.047000
32 2022-04-28 0.018000
33 2024-08-29 0.035000
34 2025-05-29 0.038000
35 2025-08-28 0.034000
36 2022-03-30 0.022000
37 2024-01-30 0.022000
38 2024-03-27 0.033000
39 2026-07-30 0.038000
40 2023-11-29 0.039000
41 2025-01-30 0.034000
42 2020-12-10 0.045000
43 2021-10-28 0.014000
44 2022-08-30 0.027000
45 2023-01-30 0.019000
46 2020-07-30 0.010000
47 2023-03-30 0.034000
48 2024-04-29 0.036000
49 2025-04-29 0.039000
50 2026-05-28 0.033000
51 2020-11-27 0.013000
52 2021-12-16 0.192000
53 2023-07-28 0.032000
54 2023-12-28 0.052000
55 2023-02-27 0.027000
56 2023-06-29 0.036000
57 2023-10-30 0.035000
58 2025-07-30 0.041000
59 2020-08-28 0.012000
60 2021-07-29 0.015000
61 2021-09-29 0.012000
62 2022-09-29 0.025000
63 2026-04-29 0.036000
64 2020-06-29 0.003000
65 2022-05-27 0.019000
66 2024-09-27 0.032000
67 2026-01-29 0.033000
68 2021-03-30 0.016000
69 2022-10-28 0.028000
70 2023-08-30 0.036000
71 2024-02-28 0.028000
72 2026-03-30 0.037000
73 2026-06-29 0.033000
74 2020-10-29 0.014000
75 2021-04-29 0.014000
76 2023-04-27 0.029000
77 2023-09-28 0.032000