Comments (1)
遇到任何问题,请先确认您的 AKShare 版本是最新的
pip install akshare --upgrade # Python 版本需要大于等于 3.8
描述遇到的问题 4. 接口的名称和代码 stock_hsgt_stock_statistics_em 6. 接口报错的截图或代码
~\anaconda3\lib\site-packages\pandas\core\internals\base.py in _validate_set_axis(self, axis, new_labels) 67 68 elif new_len != old_len: ---> 69 raise ValueError( 70 f"Length mismatch: Expected axis has {old_len} elements, new " 71 f"values have {new_len} elements"
ValueError: Length mismatch: Expected axis has 43 elements, new values have 42 elements
- 期望获得的正确结果
2024/1/11日报错,1/10正常
登录数据源页面https://data.eastmoney.com/hsgtcg/StockStatistics.html
发现源页面包括“近1、3、5、10、30日”,而接口数据中只有“近1、5、10日”
可能是源页面数据结构更新导致的错误
感谢反馈问题,已修复该问题,升级到 AKShare 1.12.21 使用
from akshare.
Related Issues (20)
- 调用ak.sw_index_first_info()的错误 HOT 2
- 20240511获取上期所每日行情数据获取不到 HOT 1
- stock_board_concept_cons_ths接口建议 HOT 2
- 期货函数get_futures_daily报错
- 文档可以下载吗?
- 有没有“社会融资规模存量”?
- `migration_area_baidu` excludes area from param `area` HOT 4
- stock_fhps_detail_ths warning HOT 1
- 期货上期所获取期货合约信息函数报错futures_contract_info_shfe HOT 4
- 个股新闻查询-AKShare 接口问题报告 HOT 1
- 上期所数据获取问题及其解决 HOT 5
- AKShare 沪深股通数据接口 stock_hsgt_hist_em 返回数据异常 HOT 1
- 上期所获取合约信息函数报错,更改网址仍然失效 ak.futures_contract_info_shfe(date=day) HOT 2
- 需求:华尔街见闻的宏观日历 HOT 2
- AKShare 接口问题报告 HOT 3
- 接口问题报告:同花顺行业板块实时信息接口 数据延迟 HOT 2
- stock_zh_index_daily 不支持多周期(日,分钟级别K线) HOT 1
- AKShare 接口问题报告 HOT 1
- stock_zh_a_hist_min_em的1分钟返回数据的open为0 HOT 1
- AKShare 接口问题报告ak.stock_news_em() HOT 5
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.