Skip to content

fix: stock_research_report_em 在标的无研报时返回空 DataFrame#7320

Open
jiawei666 wants to merge 1 commit into
akfamily:mainfrom
jiawei666:fix/stock-research-report-em-empty
Open

fix: stock_research_report_em 在标的无研报时返回空 DataFrame#7320
jiawei666 wants to merge 1 commit into
akfamily:mainfrom
jiawei666:fix/stock-research-report-em-empty

Conversation

@jiawei666

Copy link
Copy Markdown

东方财富研报列表接口在某股票暂无研报时返回 TotalPage=0,分页循环不执行,
big_df 仍是空且无任何列,后续 big_df["infoCode"] 直接 KeyError。 在拼接完所有分页结果后补充空判断,与 stock_lhb_em 等函数保持一致,
直接返回空 DataFrame。

东方财富研报列表接口在某股票暂无研报时返回 TotalPage=0,分页循环不执行,
big_df 仍是空且无任何列,后续 big_df["infoCode"] 直接 KeyError。
在拼接完所有分页结果后补充空判断,与 stock_lhb_em 等函数保持一致,
直接返回空 DataFrame。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant