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)
- macro_china_bond_public接口异常 HOT 1
- 调用案例程序出现以下问题 HOT 1
- AKShare 接口问题报告 ak.fund_scale_open_sina HOT 1
- AKShare 股票 - 深圳中小板与主板合并 HOT 1
- AKShare 接口问题报告 HOT 2
- AKShare 接口问题报告,stock_zh_a_hist_min_em 只能获取最近的分时数据,如何可以获取历史分时数据呢,没有历史数据感觉没有多大的意义 HOT 1
- AKShare 接口问题报告 HOT 2
- AKShare 接口问题报告 HOT 1
- 能否新增雪球历史行情数据 HOT 1
- 像是内存溢出 HOT 1
- AKShare 接口问题报告 HOT 2
- AKShare 接口问题报告index_value_hist_funddb无法使用 HOT 1
- 获取B股时出现bug HOT 1
- AKShare 接口问题报告 HOT 2
- AKShare 接口问题报告 HOT 1
- ak.stock_research_report_em HOT 2
- AKShare 美股接口含义疑问 HOT 2
- AKShare 接口需求,新增北京交易所财务数据下载 HOT 1
- AKShare 接口问题报告 HOT 1
- AKShare 接口问题报告(股票热度-问财数据只能返回最多5000只股票结果) HOT 1
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.