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
+72
View File
@@ -0,0 +1,72 @@
Date,Dividends
1994-11-30,0.120000
1997-12-01,1.060000
2021-06-23,2.800000
2017-12-13,1.635000
1985-03-01,0.100000
1986-03-03,0.100000
1988-09-01,0.120000
1989-12-01,0.300000
1995-12-01,0.150000
2000-11-30,2.695000
2016-12-13,1.849000
2021-12-09,3.538000
2025-06-25,2.277000
2025-12-12,1.037000
1980-08-22,0.230000
1993-03-01,0.100000
1999-12-01,0.623000
2022-12-09,0.475000
2006-12-01,0.270000
2018-06-27,3.444000
2020-12-10,1.832000
2026-06-24,1.918000
2008-12-01,0.338000
2019-06-26,1.267000
2024-06-14,2.183000
1982-08-27,0.130000
1990-03-05,0.070000
2003-12-01,0.185000
2018-12-12,2.455000
2013-07-01,3.025000
2015-07-01,3.971000
2019-12-12,0.970000
2012-12-18,1.878000
2013-12-19,1.847000
2015-12-10,3.125000
1983-02-23,0.070000
1992-12-01,0.070000
2016-07-01,2.073000
2023-06-27,0.738000
1982-03-02,0.170000
1988-03-02,0.100000
1996-12-02,0.880000
1998-12-01,0.585000
2014-12-11,3.799000
1989-03-01,0.100000
1993-12-01,0.160000
2007-12-03,0.428000
1985-09-03,0.080000
1987-03-02,0.100000
1987-12-30,0.118000
2004-12-01,0.232000
2010-12-01,0.375000
2014-07-01,3.423000
2023-12-08,1.365000
1990-12-03,0.100000
1991-12-02,0.110000
1981-02-26,0.100000
1983-08-22,0.090000
1992-03-02,0.100000
2001-12-03,0.030000
1984-03-06,0.090000
2002-12-02,0.130000
2017-06-28,1.215000
2024-12-13,3.318000
1981-08-25,0.130000
1984-08-31,0.070000
1991-03-01,0.080000
2005-12-01,0.270000
2009-12-01,0.210000
2011-12-21,0.196000
2022-06-28,1.185000
1 Date Dividends
2 1994-11-30 0.120000
3 1997-12-01 1.060000
4 2021-06-23 2.800000
5 2017-12-13 1.635000
6 1985-03-01 0.100000
7 1986-03-03 0.100000
8 1988-09-01 0.120000
9 1989-12-01 0.300000
10 1995-12-01 0.150000
11 2000-11-30 2.695000
12 2016-12-13 1.849000
13 2021-12-09 3.538000
14 2025-06-25 2.277000
15 2025-12-12 1.037000
16 1980-08-22 0.230000
17 1993-03-01 0.100000
18 1999-12-01 0.623000
19 2022-12-09 0.475000
20 2006-12-01 0.270000
21 2018-06-27 3.444000
22 2020-12-10 1.832000
23 2026-06-24 1.918000
24 2008-12-01 0.338000
25 2019-06-26 1.267000
26 2024-06-14 2.183000
27 1982-08-27 0.130000
28 1990-03-05 0.070000
29 2003-12-01 0.185000
30 2018-12-12 2.455000
31 2013-07-01 3.025000
32 2015-07-01 3.971000
33 2019-12-12 0.970000
34 2012-12-18 1.878000
35 2013-12-19 1.847000
36 2015-12-10 3.125000
37 1983-02-23 0.070000
38 1992-12-01 0.070000
39 2016-07-01 2.073000
40 2023-06-27 0.738000
41 1982-03-02 0.170000
42 1988-03-02 0.100000
43 1996-12-02 0.880000
44 1998-12-01 0.585000
45 2014-12-11 3.799000
46 1989-03-01 0.100000
47 1993-12-01 0.160000
48 2007-12-03 0.428000
49 1985-09-03 0.080000
50 1987-03-02 0.100000
51 1987-12-30 0.118000
52 2004-12-01 0.232000
53 2010-12-01 0.375000
54 2014-07-01 3.423000
55 2023-12-08 1.365000
56 1990-12-03 0.100000
57 1991-12-02 0.110000
58 1981-02-26 0.100000
59 1983-08-22 0.090000
60 1992-03-02 0.100000
61 2001-12-03 0.030000
62 1984-03-06 0.090000
63 2002-12-02 0.130000
64 2017-06-28 1.215000
65 2024-12-13 3.318000
66 1981-08-25 0.130000
67 1984-08-31 0.070000
68 1991-03-01 0.080000
69 2005-12-01 0.270000
70 2009-12-01 0.210000
71 2011-12-21 0.196000
72 2022-06-28 1.185000