AI4Finance-Foundation / AI4Finance-Foundation/FinRL
YahooFinanceProcessor.scrap_data sorts by a missing tick column
- 主要語言
- Jupyter Notebook
- 星號
- 16.3k
- 分支
- 3.5k
- PR 合併指標
- 30 天內沒有已合併 PR
描述
## Bug
`YahooFinanceProcessor.scrap_data()` raises `KeyError: "tick"` after successfully combining downloaded frames.
## Reproduction
Stub `fetch_stock_data()` to return frames containing the columns produced by the implementation, including `day` and `tic`, then call `scrap_data()` for two symbols. The final `sort_values()` call fails because it requests `tick`.
## Cause
`fetch_stock_data()` creates a `tic` column, while `scrap_data()` sorts by `["day", "tick"]`.
## Expected behavior
The combined frame should sort by `day` and `tic` and return normally.
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
Locate YahooFinanceProcessor.scrap_data and fetch_stock_data, then reproduce the failure with stubbed frames for two symbols. Check the columns returned by fetch_stock_data and the final sort_values call. Done means the combined frame sorts by day and tic and returns without a KeyError.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- data, fintech-quant
- Issue 類型
- 缺陷
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 活躍
- 描述清晰度
- 描述清楚
- 新手友好度
- 76/100