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

financial_statement('业绩预告') 有列格式错误,建议修复 #14

Open
zhuzilinux opened this issue May 5, 2023 · 0 comments
Open

Comments

@zhuzilinux
Copy link

df=qs.financial_statement('业绩预告')
Traceback (most recent call last):
File "", line 1, in
File "/mnt/lustre/home/ccz/.local/lib/python3.8/site-packages/qstock/data/fundamental.py", line 349, in financial_statement
return stock_yjyg(date)
File "/mnt/lustre/home/ccz/.local/lib/python3.8/site-packages/qstock/data/fundamental.py", line 619, in stock_yjyg
df.columns = ["序号","","代码", "简称","","公告日","报告日","_","预测指标",
File "/opt/anaconda3/lib/python3.8/site-packages/pandas/core/generic.py", line 5588, in setattr
return object.setattr(self, name, value)
File "pandas/_libs/properties.pyx", line 70, in pandas._libs.properties.AxisProperty.set
File "/opt/anaconda3/lib/python3.8/site-packages/pandas/core/generic.py", line 769, in _set_axis
self._mgr.set_axis(axis, labels)
File "/opt/anaconda3/lib/python3.8/site-packages/pandas/core/internals/managers.py", line 214, in set_axis
self._validate_set_axis(axis, new_labels)
File "/opt/anaconda3/lib/python3.8/site-packages/pandas/core/internals/base.py", line 69, in _validate_set_axis
raise ValueError(
ValueError: Length mismatch: Expected axis has 28 elements, new values have 25 elements

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

1 participant