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
+101
View File
@@ -0,0 +1,101 @@
Date,Dividends
2020-12-29,0.394546
2015-09-15,0.007100
2015-11-16,0.019501
2016-04-15,0.050635
2016-07-15,0.046647
2018-05-30,0.154800
2018-11-29,0.053308
2019-07-30,0.069644
2021-02-25,0.010010
2021-04-29,0.059130
2022-07-28,0.019290
2023-03-23,0.133820
2023-09-21,0.131370
2024-03-21,0.120680
2017-02-15,0.003809
2017-04-17,0.101023
2022-11-29,0.041830
2025-09-18,0.032630
2017-03-15,0.032575
2017-10-16,0.069508
2020-11-27,0.021858
2021-09-29,0.079549
2022-04-28,0.065859
2026-06-18,0.181400
2016-11-15,0.031200
2017-05-15,0.121507
2019-12-27,0.075800
2017-12-22,0.185320
2018-03-28,0.040481
2022-03-29,0.062112
2023-12-21,0.722630
2026-03-19,0.215100
2015-12-24,0.105800
2016-02-16,0.041011
2018-01-30,0.020196
2018-02-27,0.020130
2019-04-29,0.107351
2022-12-28,0.051550
2016-06-15,0.133348
2020-10-29,0.039176
2024-09-19,0.130290
2019-09-27,0.061076
2017-06-15,0.081771
2017-07-17,0.016655
2017-09-15,0.061248
2017-11-15,0.068800
2019-02-27,0.023321
2019-05-30,0.202602
2019-06-27,0.158000
2020-05-28,0.087637
2020-06-29,0.087198
2020-09-29,0.026266
2022-02-24,0.002207
2022-08-30,0.029770
2020-02-25,0.020023
2021-08-30,0.078891
2021-10-28,0.057223
2022-05-26,0.118587
2022-10-27,0.042610
2023-06-22,0.221880
2016-09-15,0.050785
2016-10-17,0.029038
2021-11-29,0.050666
2018-07-30,0.041900
2019-11-27,0.043400
2020-03-27,0.068562
2021-03-29,0.020208
2021-12-29,0.013425
2015-10-15,0.013124
2016-08-15,0.038584
2019-08-29,0.077041
2020-07-30,0.060126
2022-06-28,0.020960
2024-12-19,0.655090
2021-06-29,0.060586
2016-12-23,0.018061
2017-01-17,0.014121
2017-08-15,0.008312
2018-12-27,0.031869
2019-03-28,0.071441
2020-04-29,0.063249
2021-01-28,0.010007
2021-07-29,0.079225
2022-09-29,0.047690
2016-03-15,0.038896
2016-05-16,0.141614
2018-10-30,0.040566
2020-01-30,0.010016
2025-03-20,0.213220
2018-04-27,0.096100
2018-08-29,0.063000
2018-09-27,0.041525
2019-01-30,0.022210
2019-10-30,0.026271
2021-05-27,0.073223
2018-06-26,0.152500
2020-08-28,0.027388
2024-06-20,0.125020
2025-06-20,0.325770
2025-12-18,0.094360
1 Date Dividends
2 2020-12-29 0.394546
3 2015-09-15 0.007100
4 2015-11-16 0.019501
5 2016-04-15 0.050635
6 2016-07-15 0.046647
7 2018-05-30 0.154800
8 2018-11-29 0.053308
9 2019-07-30 0.069644
10 2021-02-25 0.010010
11 2021-04-29 0.059130
12 2022-07-28 0.019290
13 2023-03-23 0.133820
14 2023-09-21 0.131370
15 2024-03-21 0.120680
16 2017-02-15 0.003809
17 2017-04-17 0.101023
18 2022-11-29 0.041830
19 2025-09-18 0.032630
20 2017-03-15 0.032575
21 2017-10-16 0.069508
22 2020-11-27 0.021858
23 2021-09-29 0.079549
24 2022-04-28 0.065859
25 2026-06-18 0.181400
26 2016-11-15 0.031200
27 2017-05-15 0.121507
28 2019-12-27 0.075800
29 2017-12-22 0.185320
30 2018-03-28 0.040481
31 2022-03-29 0.062112
32 2023-12-21 0.722630
33 2026-03-19 0.215100
34 2015-12-24 0.105800
35 2016-02-16 0.041011
36 2018-01-30 0.020196
37 2018-02-27 0.020130
38 2019-04-29 0.107351
39 2022-12-28 0.051550
40 2016-06-15 0.133348
41 2020-10-29 0.039176
42 2024-09-19 0.130290
43 2019-09-27 0.061076
44 2017-06-15 0.081771
45 2017-07-17 0.016655
46 2017-09-15 0.061248
47 2017-11-15 0.068800
48 2019-02-27 0.023321
49 2019-05-30 0.202602
50 2019-06-27 0.158000
51 2020-05-28 0.087637
52 2020-06-29 0.087198
53 2020-09-29 0.026266
54 2022-02-24 0.002207
55 2022-08-30 0.029770
56 2020-02-25 0.020023
57 2021-08-30 0.078891
58 2021-10-28 0.057223
59 2022-05-26 0.118587
60 2022-10-27 0.042610
61 2023-06-22 0.221880
62 2016-09-15 0.050785
63 2016-10-17 0.029038
64 2021-11-29 0.050666
65 2018-07-30 0.041900
66 2019-11-27 0.043400
67 2020-03-27 0.068562
68 2021-03-29 0.020208
69 2021-12-29 0.013425
70 2015-10-15 0.013124
71 2016-08-15 0.038584
72 2019-08-29 0.077041
73 2020-07-30 0.060126
74 2022-06-28 0.020960
75 2024-12-19 0.655090
76 2021-06-29 0.060586
77 2016-12-23 0.018061
78 2017-01-17 0.014121
79 2017-08-15 0.008312
80 2018-12-27 0.031869
81 2019-03-28 0.071441
82 2020-04-29 0.063249
83 2021-01-28 0.010007
84 2021-07-29 0.079225
85 2022-09-29 0.047690
86 2016-03-15 0.038896
87 2016-05-16 0.141614
88 2018-10-30 0.040566
89 2020-01-30 0.010016
90 2025-03-20 0.213220
91 2018-04-27 0.096100
92 2018-08-29 0.063000
93 2018-09-27 0.041525
94 2019-01-30 0.022210
95 2019-10-30 0.026271
96 2021-05-27 0.073223
97 2018-06-26 0.152500
98 2020-08-28 0.027388
99 2024-06-20 0.125020
100 2025-06-20 0.325770
101 2025-12-18 0.094360