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
+102
View File
@@ -0,0 +1,102 @@
Date,Dividends
2001-10-02,0.201000
2012-09-25,0.339000
2019-03-20,0.578000
2020-03-25,0.597000
2022-12-13,0.734000
2004-06-28,0.226000
2012-12-19,0.458000
2016-03-23,0.471000
2018-03-22,0.529000
2022-06-09,0.569000
2005-06-21,0.228000
2005-09-27,0.266000
2007-09-26,0.319000
2009-12-24,0.266000
2010-09-24,0.321000
2024-03-21,0.744000
2006-03-27,0.241000
2008-12-24,0.329000
2012-03-26,0.290000
2014-03-25,0.383000
2018-12-17,0.625000
2020-06-15,0.541000
2011-03-25,0.254000
2021-09-24,0.632000
2022-03-24,0.613000
2025-03-18,0.577000
2025-09-16,0.720000
2026-06-15,0.731000
2023-03-23,0.657000
2024-09-25,0.833000
2003-06-16,0.165000
2006-09-27,0.258000
2009-06-23,0.259000
2009-09-23,0.278000
2013-12-23,0.464000
2016-12-21,0.561000
2015-03-25,0.477000
2019-09-24,0.630000
2002-03-11,0.141000
2003-03-10,0.133000
2009-03-25,0.316000
2010-12-23,0.269000
2013-03-25,0.342000
2013-06-26,0.396000
2025-12-16,0.845000
2002-09-16,0.134000
2006-12-21,0.346000
2008-06-25,0.359000
2010-06-23,0.259000
2011-09-26,0.286000
2012-06-19,0.319000
2004-09-27,0.188000
2007-12-27,0.337000
2015-12-24,0.486000
2019-12-16,0.655000
2021-06-10,0.500000
2023-09-26,0.736000
2004-03-29,0.216000
2007-03-26,0.299000
2014-06-24,0.388000
2014-12-24,0.470000
2024-06-11,0.629000
2020-12-14,0.684000
2022-09-26,0.725000
2001-12-17,0.190000
2002-12-16,0.245000
2003-09-15,0.242000
2007-06-29,0.358000
2011-12-22,0.346000
2014-09-24,0.437000
2006-06-23,0.208000
2008-03-25,0.375000
2017-09-26,0.536000
2020-09-23,0.632000
2021-03-25,0.568000
2016-06-21,0.509000
2017-12-19,0.569000
2001-03-12,0.147000
2002-06-17,0.162000
2005-03-28,0.279000
2010-03-25,0.245000
2011-06-23,0.295000
2013-09-24,0.411000
2023-06-07,0.595000
2024-12-17,0.763000
2001-06-11,0.054000
2003-12-15,0.289000
2018-09-26,0.564000
2023-12-20,0.667000
2025-06-16,0.638000
2026-03-17,0.924000
2015-09-25,0.485000
2016-09-26,0.512000
2017-03-24,0.496000
2018-06-26,0.611000
2021-12-13,0.613000
2004-12-27,0.617000
2008-09-25,0.398000
2015-06-24,0.477000
2017-06-27,0.550000
2019-06-17,0.830000
1 Date Dividends
2 2001-10-02 0.201000
3 2012-09-25 0.339000
4 2019-03-20 0.578000
5 2020-03-25 0.597000
6 2022-12-13 0.734000
7 2004-06-28 0.226000
8 2012-12-19 0.458000
9 2016-03-23 0.471000
10 2018-03-22 0.529000
11 2022-06-09 0.569000
12 2005-06-21 0.228000
13 2005-09-27 0.266000
14 2007-09-26 0.319000
15 2009-12-24 0.266000
16 2010-09-24 0.321000
17 2024-03-21 0.744000
18 2006-03-27 0.241000
19 2008-12-24 0.329000
20 2012-03-26 0.290000
21 2014-03-25 0.383000
22 2018-12-17 0.625000
23 2020-06-15 0.541000
24 2011-03-25 0.254000
25 2021-09-24 0.632000
26 2022-03-24 0.613000
27 2025-03-18 0.577000
28 2025-09-16 0.720000
29 2026-06-15 0.731000
30 2023-03-23 0.657000
31 2024-09-25 0.833000
32 2003-06-16 0.165000
33 2006-09-27 0.258000
34 2009-06-23 0.259000
35 2009-09-23 0.278000
36 2013-12-23 0.464000
37 2016-12-21 0.561000
38 2015-03-25 0.477000
39 2019-09-24 0.630000
40 2002-03-11 0.141000
41 2003-03-10 0.133000
42 2009-03-25 0.316000
43 2010-12-23 0.269000
44 2013-03-25 0.342000
45 2013-06-26 0.396000
46 2025-12-16 0.845000
47 2002-09-16 0.134000
48 2006-12-21 0.346000
49 2008-06-25 0.359000
50 2010-06-23 0.259000
51 2011-09-26 0.286000
52 2012-06-19 0.319000
53 2004-09-27 0.188000
54 2007-12-27 0.337000
55 2015-12-24 0.486000
56 2019-12-16 0.655000
57 2021-06-10 0.500000
58 2023-09-26 0.736000
59 2004-03-29 0.216000
60 2007-03-26 0.299000
61 2014-06-24 0.388000
62 2014-12-24 0.470000
63 2024-06-11 0.629000
64 2020-12-14 0.684000
65 2022-09-26 0.725000
66 2001-12-17 0.190000
67 2002-12-16 0.245000
68 2003-09-15 0.242000
69 2007-06-29 0.358000
70 2011-12-22 0.346000
71 2014-09-24 0.437000
72 2006-06-23 0.208000
73 2008-03-25 0.375000
74 2017-09-26 0.536000
75 2020-09-23 0.632000
76 2021-03-25 0.568000
77 2016-06-21 0.509000
78 2017-12-19 0.569000
79 2001-03-12 0.147000
80 2002-06-17 0.162000
81 2005-03-28 0.279000
82 2010-03-25 0.245000
83 2011-06-23 0.295000
84 2013-09-24 0.411000
85 2023-06-07 0.595000
86 2024-12-17 0.763000
87 2001-06-11 0.054000
88 2003-12-15 0.289000
89 2018-09-26 0.564000
90 2023-12-20 0.667000
91 2025-06-16 0.638000
92 2026-03-17 0.924000
93 2015-09-25 0.485000
94 2016-09-26 0.512000
95 2017-03-24 0.496000
96 2018-06-26 0.611000
97 2021-12-13 0.613000
98 2004-12-27 0.617000
99 2008-09-25 0.398000
100 2015-06-24 0.477000
101 2017-06-27 0.550000
102 2019-06-17 0.830000