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
+124
View File
@@ -0,0 +1,124 @@
Date,Dividends
2017-04-26,0.023000
2018-07-27,0.022000
2019-07-29,0.024000
2021-01-27,0.012000
2022-05-26,0.020000
2018-08-29,0.023000
2019-12-27,0.022000
2022-01-27,0.017000
2024-07-29,0.024000
2025-10-29,0.028000
2026-02-25,0.027000
2018-02-26,0.020000
2023-08-29,0.022000
2018-10-29,0.023000
2019-09-26,0.023000
2019-11-26,0.021000
2022-09-28,0.017000
2018-12-27,0.023000
2023-06-28,0.022000
2025-12-29,0.030000
2017-12-27,0.023000
2019-08-28,0.022000
2020-04-28,0.020000
2021-08-27,0.015000
2018-05-29,0.022000
2019-03-27,0.023000
2019-10-29,0.021000
2020-10-28,0.015000
2021-06-28,0.015000
2019-06-26,0.023000
2020-12-11,0.015000
2023-09-27,0.022000
2026-01-28,0.027000
2021-07-28,0.015000
2016-12-14,0.037000
2017-08-29,0.022000
2018-11-28,0.023000
2020-06-26,0.016000
2021-09-28,0.014000
2022-10-27,0.017000
2016-09-28,0.020000
2023-05-26,0.021000
2025-02-26,0.023000
2026-03-27,0.030000
2018-06-27,0.022000
2019-05-29,0.024000
2021-04-28,0.016000
2024-09-26,0.024000
2022-12-28,0.020000
2017-02-24,0.019000
2020-12-29,0.015000
2021-10-27,0.015000
2022-06-28,0.017000
2023-01-27,0.018000
2023-11-28,0.022000
2024-08-28,0.024000
2025-11-25,0.028000
2026-04-28,0.034000
2026-06-26,0.030000
2026-07-29,0.033000
2016-12-28,0.022000
2017-01-27,0.019000
2022-04-27,0.019000
2024-10-29,0.024000
2025-09-26,0.027000
2018-01-31,0.019000
2018-09-26,0.022000
2020-01-29,0.020000
2023-04-26,0.023000
2024-04-26,0.025000
2017-05-26,0.022000
2017-06-28,0.022000
2017-07-27,0.022000
2023-12-27,0.022000
2025-03-27,0.026000
2017-03-29,0.022000
2025-04-28,0.030000
2019-01-29,0.021000
2022-03-29,0.016000
2023-02-24,0.018000
2025-05-28,0.026000
2025-07-29,0.027000
2017-11-28,0.023000
2022-02-24,0.014000
2017-10-27,0.023000
2021-02-24,0.013000
2021-11-26,0.016000
2020-05-27,0.015000
2020-07-29,0.016000
2023-03-29,0.022000
2024-11-26,0.024000
2017-09-27,0.021000
2019-04-26,0.026000
2020-03-27,0.018000
2024-03-26,0.024000
2019-02-26,0.017000
2021-12-29,0.017000
2022-07-27,0.015000
2022-08-29,0.021000
2023-07-27,0.022000
2024-05-29,0.025000
2025-08-27,0.027000
2017-12-13,0.010000
2018-03-27,0.023000
2021-05-26,0.015000
2024-06-26,0.023000
2024-12-27,0.025000
2020-09-28,0.016000
2020-11-25,0.015000
2016-08-29,0.022000
2020-02-26,0.020000
2023-10-27,0.023000
2025-06-26,0.027000
2016-10-27,0.020000
2016-11-28,0.021000
2018-04-26,0.025000
2024-01-29,0.021000
2020-08-27,0.017000
2021-03-29,0.014000
2022-11-28,0.019000
2024-02-27,0.021000
2025-01-29,0.023000
2026-05-27,0.031000
1 Date Dividends
2 2017-04-26 0.023000
3 2018-07-27 0.022000
4 2019-07-29 0.024000
5 2021-01-27 0.012000
6 2022-05-26 0.020000
7 2018-08-29 0.023000
8 2019-12-27 0.022000
9 2022-01-27 0.017000
10 2024-07-29 0.024000
11 2025-10-29 0.028000
12 2026-02-25 0.027000
13 2018-02-26 0.020000
14 2023-08-29 0.022000
15 2018-10-29 0.023000
16 2019-09-26 0.023000
17 2019-11-26 0.021000
18 2022-09-28 0.017000
19 2018-12-27 0.023000
20 2023-06-28 0.022000
21 2025-12-29 0.030000
22 2017-12-27 0.023000
23 2019-08-28 0.022000
24 2020-04-28 0.020000
25 2021-08-27 0.015000
26 2018-05-29 0.022000
27 2019-03-27 0.023000
28 2019-10-29 0.021000
29 2020-10-28 0.015000
30 2021-06-28 0.015000
31 2019-06-26 0.023000
32 2020-12-11 0.015000
33 2023-09-27 0.022000
34 2026-01-28 0.027000
35 2021-07-28 0.015000
36 2016-12-14 0.037000
37 2017-08-29 0.022000
38 2018-11-28 0.023000
39 2020-06-26 0.016000
40 2021-09-28 0.014000
41 2022-10-27 0.017000
42 2016-09-28 0.020000
43 2023-05-26 0.021000
44 2025-02-26 0.023000
45 2026-03-27 0.030000
46 2018-06-27 0.022000
47 2019-05-29 0.024000
48 2021-04-28 0.016000
49 2024-09-26 0.024000
50 2022-12-28 0.020000
51 2017-02-24 0.019000
52 2020-12-29 0.015000
53 2021-10-27 0.015000
54 2022-06-28 0.017000
55 2023-01-27 0.018000
56 2023-11-28 0.022000
57 2024-08-28 0.024000
58 2025-11-25 0.028000
59 2026-04-28 0.034000
60 2026-06-26 0.030000
61 2026-07-29 0.033000
62 2016-12-28 0.022000
63 2017-01-27 0.019000
64 2022-04-27 0.019000
65 2024-10-29 0.024000
66 2025-09-26 0.027000
67 2018-01-31 0.019000
68 2018-09-26 0.022000
69 2020-01-29 0.020000
70 2023-04-26 0.023000
71 2024-04-26 0.025000
72 2017-05-26 0.022000
73 2017-06-28 0.022000
74 2017-07-27 0.022000
75 2023-12-27 0.022000
76 2025-03-27 0.026000
77 2017-03-29 0.022000
78 2025-04-28 0.030000
79 2019-01-29 0.021000
80 2022-03-29 0.016000
81 2023-02-24 0.018000
82 2025-05-28 0.026000
83 2025-07-29 0.027000
84 2017-11-28 0.023000
85 2022-02-24 0.014000
86 2017-10-27 0.023000
87 2021-02-24 0.013000
88 2021-11-26 0.016000
89 2020-05-27 0.015000
90 2020-07-29 0.016000
91 2023-03-29 0.022000
92 2024-11-26 0.024000
93 2017-09-27 0.021000
94 2019-04-26 0.026000
95 2020-03-27 0.018000
96 2024-03-26 0.024000
97 2019-02-26 0.017000
98 2021-12-29 0.017000
99 2022-07-27 0.015000
100 2022-08-29 0.021000
101 2023-07-27 0.022000
102 2024-05-29 0.025000
103 2025-08-27 0.027000
104 2017-12-13 0.010000
105 2018-03-27 0.023000
106 2021-05-26 0.015000
107 2024-06-26 0.023000
108 2024-12-27 0.025000
109 2020-09-28 0.016000
110 2020-11-25 0.015000
111 2016-08-29 0.022000
112 2020-02-26 0.020000
113 2023-10-27 0.023000
114 2025-06-26 0.027000
115 2016-10-27 0.020000
116 2016-11-28 0.021000
117 2018-04-26 0.025000
118 2024-01-29 0.021000
119 2020-08-27 0.017000
120 2021-03-29 0.014000
121 2022-11-28 0.019000
122 2024-02-27 0.021000
123 2025-01-29 0.023000
124 2026-05-27 0.031000