fix(deps): require yfinance >=1.4.1 and tolerate non-Date index column

yfinance 1.4.0 regressed the daily-download index to unnamed, so
reset_index() produced an "index" column instead of "Date" and every
stockstats indicator silently failed (no SMA/RSI/MACD/Bollinger/ATR).
Verified across versions: 1.2.0 / 1.3.0 / 1.4.1 name it "Date"; only
1.4.0 is broken. Pin to >=1.4.1 (the upstream fix) and normalize the
date column defensively so a non-"Date" index can't silently drop
indicators on any build.

#890
This commit is contained in:
Yijia-Xiao
2026-05-31 00:51:30 +00:00
parent 3543e5397e
commit a66aa8fb94
3 changed files with 88 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ dependencies = [
"stockstats>=0.6.5",
"tqdm>=4.67.1",
"typing-extensions>=4.14.0",
"yfinance>=0.2.63",
"yfinance>=1.4.1",
]
[project.scripts]