Comments (5)
3.9也试了,一样的报错:
Traceback (most recent call last):
File "/Users/momo/Documents/stockak2.py", line 4, in
stock_zt_pool_em_df = ak.stock_zt_pool_em(date='20210525')
File "/usr/local/lib/python3.9/site-packages/akshare/stock_feature/stock_ztb_em.py", line 50, in stock_zt_pool_em
temp_df.columns = [
File "/usr/local/lib/python3.9/site-packages/pandas/core/generic.py", line 6313, in setattr
return object.setattr(self, name, value)
File "properties.pyx", line 69, in pandas._libs.properties.AxisProperty.set
File "/usr/local/lib/python3.9/site-packages/pandas/core/generic.py", line 814, in _set_axis
self._mgr.set_axis(axis, labels)
File "/usr/local/lib/python3.9/site-packages/pandas/core/internals/managers.py", line 238, in set_axis
self._validate_set_axis(axis, new_labels)
File "/usr/local/lib/python3.9/site-packages/pandas/core/internals/base.py", line 98, in _validate_set_axis
raise ValueError(
ValueError: Length mismatch: Expected axis has 1 elements, new values have 17 elements
from akshare.
stock_zt_pool_em
接口正常,只能获取近期的数据
from akshare.
stock_zt_pool_em
接口正常,只能获取近期的数据
import akshare as ak
stock_zt_pool_em_df = ak.stock_zt_pool_em(date='20240325')
print(stock_zt_pool_em_df)
换了时间也报了一样的错
from akshare.
from akshare.
temp_df.columns = [
"序号",
"代码",
"_",
"名称",
"最新价",
"涨跌幅",
"成交额",
"流通市值",
"总市值",
"换手率",
"连板数",
"首次封板时间",
"最后封板时间",
"封板资金",
"炸板次数",
"所属行业",
"涨停统计",
]
第三行多余了,接口没有匹配的:
{
"c": "600727",
"m": 1,
"n": "鲁北化工",
"p": 6340,
"zdp": 10.06944465637207,
"amount": 71752005,
"ltsz": 3350836675.9,
"tshare": 3351217082.24,
"hs": 2.1413161754608156,
"lbc": 1,
"fbt": 92502,
"lbt": 92502,
"fund": 94974144,
"zbc": 0,
"hybk": "化学原料",
"zttj": {
"days": 1,
"ct": 1
}
from akshare.
Related Issues (20)
- fund_etf_hist_em 接口异常 HOT 1
- AKShare 接口问题报告 HOT 1
- AKShare 接口问题报告 HOT 1
- option_comm_info error HOT 1
- AKShare 接口问题报告
- AKShare 接口问题报告 HOT 1
- AKShare 接口问题报告 HOT 2
- AKShare 接口问题报告 HOT 4
- AKShare 接口问题报告 HOT 1
- AKShare 接口问题报告 HOT 1
- CentOS 7.9安装失败 HOT 2
- AKShare 接口问题报告 HOT 2
- AKShare 接口问题报告 HOT 1
- 同花顺 - 概念板块系列接口不再提供? HOT 1
- etf的历史溢价数据 HOT 1
- AKShare 接口问题报告 HOT 1
- 能否新增个股资讯接口 HOT 1
- AKShare 接口问题报告 HOT 1
- 同花顺-数据中心-资金流向-个股资金流即时接口偶尔会返回13个字段产生错误,建议适配 HOT 1
- stock_a_indicator_lg出现ValueError: could not convert string to float: 'null' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from akshare.