fix: remove nonexistent change column from price collector OHLCV mapping
All checks were successful
Deploy to Production / deploy (push) Successful in 1m10s
All checks were successful
Deploy to Production / deploy (push) Successful in 1m10s
pykrx get_market_ohlcv returns 6 data columns (시가/고가/저가/종가/거래량/거래대금), not 7. The 등락률 (change) column does not exist, causing a length mismatch error. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
8b9fe7064c
commit
08710a6dba
@ -78,10 +78,10 @@ class PriceCollector(BaseCollector):
|
|||||||
|
|
||||||
df = df.reset_index()
|
df = df.reset_index()
|
||||||
df.columns = ["date", "open", "high", "low", "close", "volume",
|
df.columns = ["date", "open", "high", "low", "close", "volume",
|
||||||
"value", "change"]
|
"value"]
|
||||||
|
|
||||||
# Validate column count
|
# Validate column count
|
||||||
expected_cols = 8 # date + 7 data columns
|
expected_cols = 7 # date + 6 data columns
|
||||||
if len(df.columns) < expected_cols:
|
if len(df.columns) < expected_cols:
|
||||||
logger.warning(f"Unexpected column count for {ticker}: {len(df.columns)}")
|
logger.warning(f"Unexpected column count for {ticker}: {len(df.columns)}")
|
||||||
continue
|
continue
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user