Code Monkey home page Code Monkey logo

Comments (5)

hua060097 avatar hua060097 commented on September 22, 2024

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.

albertandking avatar albertandking commented on September 22, 2024

stock_zt_pool_em

接口正常,只能获取近期的数据

from akshare.

hua060097 avatar hua060097 commented on September 22, 2024

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.

hua060097 avatar hua060097 commented on September 22, 2024

@albertandking

from akshare.

hua060097 avatar hua060097 commented on September 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.