代码:
table_list=['Balance','Income','CashFlow','Capital','Top10FlowHolder','Top10Holder','HolderNum','PershareIndex']
table_list=['PERSHAREINDEX']
xtdata.download_financial_data(stock_list=['002878.SZ'], table_list=table_list)
res = xtdata.get_financial_data(stock_list=['002878.SZ'], table_list=table_list)
print(res)
结果:
{'002878.SZ': {'PERSHAREINDEX': Empty DataFrame
Columns: []
Index: []}}
如果table_list=['Balance','Income','CashFlow','Capital','Top10FlowHolder','Top10Holder','HolderNum','PershareIndex']
则结果:
......
45 20231031 20230930 25730.0 25730.0 0.0 0.0 0.0 0.0
46 20240102 20231220 35634.0 35634.0 0.0 0.0 0.0 0.0
47 20240129 20240119 22255.0 22255.0 0.0 0.0 0.0 0.0, 'PershareIndex': Empty DataFrame
Columns: []
Index: []}}
不知要怎样搞?
非常感谢! |