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
+130
View File
@@ -0,0 +1,130 @@
Date,Dividends
2025-01-16,0.528376
2025-02-18,0.528376
2023-09-15,0.528376
2024-06-17,0.528376
2018-08-16,0.536204
2021-11-12,0.208415
2022-07-15,0.208415
2016-12-15,1.604697
2021-10-15,0.208415
2025-04-15,0.528376
2023-01-17,0.208415
2023-10-13,0.528376
2013-02-26,1.604697
2020-12-11,0.208415
2022-10-14,0.208415
2019-12-13,0.536204
2020-11-13,0.208415
2021-07-13,0.208415
2024-07-08,0.528376
2014-06-10,1.604697
2017-07-14,0.536204
2018-09-14,0.536204
2018-11-15,0.536204
2020-01-16,0.536204
2024-02-14,0.528376
2019-08-15,0.536204
2022-11-14,0.208415
2016-06-09,1.604697
2018-01-18,0.536204
2018-04-12,0.536204
2025-12-15,0.540000
2014-09-16,1.604697
2017-12-15,0.536204
2024-01-16,0.528376
2021-01-15,0.208415
2018-10-18,0.536204
2019-02-14,0.536204
2019-07-02,0.536204
2019-11-14,0.536204
2021-09-14,0.208415
2025-03-17,0.528376
2025-10-15,0.540000
2016-09-15,1.604697
2018-05-17,0.536204
2019-05-16,0.536204
2021-05-14,0.208415
2013-06-10,1.604697
2017-06-14,0.536204
2020-10-16,0.208415
2026-03-16,0.540000
2020-03-13,0.536204
2020-07-13,0.208415
2024-11-15,0.528376
2021-03-12,0.208415
2022-08-15,0.208415
2025-11-17,0.540000
2026-05-15,0.540000
2015-09-16,1.604697
2015-12-16,1.604697
2019-10-17,0.536204
2023-04-17,0.264188
2023-05-12,0.264188
2026-07-15,0.600000
2017-02-13,1.604697
2023-06-14,0.264188
2021-12-10,0.208415
2022-01-14,0.208415
2023-12-14,0.528376
2022-05-13,0.208415
2024-10-15,0.528376
2025-06-16,0.528376
2025-08-04,0.540000
2017-09-15,0.536204
2019-01-17,0.536204
2020-09-14,0.208415
2019-09-13,0.536204
2020-04-13,0.536204
2024-04-12,0.528376
2025-05-15,0.528376
2022-03-14,0.208415
2023-03-14,0.264188
2017-08-15,0.536204
2020-05-15,0.536204
2020-08-14,0.208415
2026-01-16,0.540000
2013-09-16,1.604697
2017-10-17,0.536204
2019-03-15,0.536204
2024-08-15,0.528376
2014-12-16,1.604697
2018-02-15,0.536204
2022-09-16,0.208415
2026-08-17,0.600000
2014-02-26,1.604697
2022-06-13,0.208415
2024-03-14,0.528376
2020-06-12,0.207436
2023-02-14,0.264188
2025-07-02,0.528376
2020-02-13,0.536204
2022-02-14,0.208415
2024-05-14,0.528376
2012-12-17,0.978474
2016-02-10,1.604697
2017-11-15,0.536204
2022-04-14,0.208415
2022-12-12,0.208415
2015-06-10,1.604697
2018-06-14,0.536204
2018-07-13,0.536204
2026-02-17,0.540000
2018-12-14,0.536204
2019-06-13,0.536204
2021-06-11,0.208415
2023-11-14,0.528376
2026-06-15,0.600000
2013-12-16,1.604697
2021-04-13,0.208415
2023-07-17,0.264188
2025-09-16,0.540000
2021-08-13,0.208415
2023-08-14,0.264188
2026-04-16,0.540000
2018-03-09,0.536204
2019-04-11,0.536204
2024-09-17,0.528376
2015-03-10,1.604697
2021-02-12,0.208415
2024-12-16,0.528376
1 Date Dividends
2 2025-01-16 0.528376
3 2025-02-18 0.528376
4 2023-09-15 0.528376
5 2024-06-17 0.528376
6 2018-08-16 0.536204
7 2021-11-12 0.208415
8 2022-07-15 0.208415
9 2016-12-15 1.604697
10 2021-10-15 0.208415
11 2025-04-15 0.528376
12 2023-01-17 0.208415
13 2023-10-13 0.528376
14 2013-02-26 1.604697
15 2020-12-11 0.208415
16 2022-10-14 0.208415
17 2019-12-13 0.536204
18 2020-11-13 0.208415
19 2021-07-13 0.208415
20 2024-07-08 0.528376
21 2014-06-10 1.604697
22 2017-07-14 0.536204
23 2018-09-14 0.536204
24 2018-11-15 0.536204
25 2020-01-16 0.536204
26 2024-02-14 0.528376
27 2019-08-15 0.536204
28 2022-11-14 0.208415
29 2016-06-09 1.604697
30 2018-01-18 0.536204
31 2018-04-12 0.536204
32 2025-12-15 0.540000
33 2014-09-16 1.604697
34 2017-12-15 0.536204
35 2024-01-16 0.528376
36 2021-01-15 0.208415
37 2018-10-18 0.536204
38 2019-02-14 0.536204
39 2019-07-02 0.536204
40 2019-11-14 0.536204
41 2021-09-14 0.208415
42 2025-03-17 0.528376
43 2025-10-15 0.540000
44 2016-09-15 1.604697
45 2018-05-17 0.536204
46 2019-05-16 0.536204
47 2021-05-14 0.208415
48 2013-06-10 1.604697
49 2017-06-14 0.536204
50 2020-10-16 0.208415
51 2026-03-16 0.540000
52 2020-03-13 0.536204
53 2020-07-13 0.208415
54 2024-11-15 0.528376
55 2021-03-12 0.208415
56 2022-08-15 0.208415
57 2025-11-17 0.540000
58 2026-05-15 0.540000
59 2015-09-16 1.604697
60 2015-12-16 1.604697
61 2019-10-17 0.536204
62 2023-04-17 0.264188
63 2023-05-12 0.264188
64 2026-07-15 0.600000
65 2017-02-13 1.604697
66 2023-06-14 0.264188
67 2021-12-10 0.208415
68 2022-01-14 0.208415
69 2023-12-14 0.528376
70 2022-05-13 0.208415
71 2024-10-15 0.528376
72 2025-06-16 0.528376
73 2025-08-04 0.540000
74 2017-09-15 0.536204
75 2019-01-17 0.536204
76 2020-09-14 0.208415
77 2019-09-13 0.536204
78 2020-04-13 0.536204
79 2024-04-12 0.528376
80 2025-05-15 0.528376
81 2022-03-14 0.208415
82 2023-03-14 0.264188
83 2017-08-15 0.536204
84 2020-05-15 0.536204
85 2020-08-14 0.208415
86 2026-01-16 0.540000
87 2013-09-16 1.604697
88 2017-10-17 0.536204
89 2019-03-15 0.536204
90 2024-08-15 0.528376
91 2014-12-16 1.604697
92 2018-02-15 0.536204
93 2022-09-16 0.208415
94 2026-08-17 0.600000
95 2014-02-26 1.604697
96 2022-06-13 0.208415
97 2024-03-14 0.528376
98 2020-06-12 0.207436
99 2023-02-14 0.264188
100 2025-07-02 0.528376
101 2020-02-13 0.536204
102 2022-02-14 0.208415
103 2024-05-14 0.528376
104 2012-12-17 0.978474
105 2016-02-10 1.604697
106 2017-11-15 0.536204
107 2022-04-14 0.208415
108 2022-12-12 0.208415
109 2015-06-10 1.604697
110 2018-06-14 0.536204
111 2018-07-13 0.536204
112 2026-02-17 0.540000
113 2018-12-14 0.536204
114 2019-06-13 0.536204
115 2021-06-11 0.208415
116 2023-11-14 0.528376
117 2026-06-15 0.600000
118 2013-12-16 1.604697
119 2021-04-13 0.208415
120 2023-07-17 0.264188
121 2025-09-16 0.540000
122 2021-08-13 0.208415
123 2023-08-14 0.264188
124 2026-04-16 0.540000
125 2018-03-09 0.536204
126 2019-04-11 0.536204
127 2024-09-17 0.528376
128 2015-03-10 1.604697
129 2021-02-12 0.208415
130 2024-12-16 0.528376