feat(training): 新增财务数据因子并修复多表 join 冲突
- 添加 9 个财务数据因子(利润表/资产负债表/现金流量表) - 修复多表 asof join 时 f_ann_date_right 列名重复错误 - 将 Top5 改为可配置的 TopN 参数 - 删除已弃用的 regression.py 脚本
This commit is contained in:
@@ -128,6 +128,10 @@ class FinancialLoader:
|
||||
strategy="backward",
|
||||
)
|
||||
|
||||
# 删除 f_ann_date_right 列(如果有),避免多次 asof join 时列名冲突
|
||||
if "f_ann_date_right" in merged.columns:
|
||||
merged = merged.drop("f_ann_date_right")
|
||||
|
||||
return merged
|
||||
|
||||
def _load_from_db(
|
||||
|
||||
Reference in New Issue
Block a user