Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

中金的只取到2020.3.13,报错如下,请码主看下啦。 #5

Closed
xblxbl opened this issue Sep 25, 2021 · 0 comments
Closed

Comments

@xblxbl
Copy link

xblxbl commented Sep 25, 2021

C:\Anaconda3\lib\site-packages\pandas\core\frame.py:1554: FutureWarning: Using short name for 'orient' is deprecated. Only the options: ('dict', list, 'series', 'split', 'records', 'index') will be used in a future version. Use one of the above to silence this warning.
FutureWarning,
C:\Anaconda3\lib\site-packages\pandas\core\frame.py:4449: SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame

See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
errors=errors,
Exception in thread Thread-2:
Traceback (most recent call last):
File "C:\supe\FutureHolderRank-master\cffex.py", line 127, in run
self.parse_data(xml_dict)
File "C:\supe\FutureHolderRank-master\cffex.py", line 138, in parse_data
date = xml_dict['positionRank']['positionamt'][0]['tradingday']
KeyError: 'positionamt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Anaconda3\lib\threading.py", line 926, in _bootstrap_inner
self.run()
File "C:\supe\FutureHolderRank-master\cffex.py", line 132, in run
log.logger.error('数据处理线程出错, 时间:%s,错误信息:%s' % (xml_dict['positionRank']['positionamt'][0]['tradingday'], e), exc_info=True)
KeyError: 'positionamt'

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

No branches or pull requests

2 participants