Comments (1)
================ 2020-06-24
Traceback (most recent call last):
File "h:/project/stock/new/src/data/collect/stock_out_date.py", line 47, in
stock_em_tfp_df = ak.stock_em_tfp(trade_date=day_str)
File "C:\Users\lees\AppData\Roaming\Python\Python37\site-packages\akshare\stock_feature\stock_em_tfp.py", line 38, in stock_em_tfp
temp_df = pd.DataFrame(data_json["data"]).iloc[:, 0].str.split(",", expand=True)
File "D:\ProgramData\Anaconda3\lib\site-packages\pandas\core\generic.py", line 5270, in getattr
return object.getattribute(self, name)
File "D:\ProgramData\Anaconda3\lib\site-packages\pandas\core\accessor.py", line 187, in get
accessor_obj = self._accessor(obj)
File "D:\ProgramData\Anaconda3\lib\site-packages\pandas\core\strings.py", line 2041, in init
self._inferred_dtype = self._validate(data)
File "D:\ProgramData\Anaconda3\lib\site-packages\pandas\core\strings.py", line 2098, in _validate
raise AttributeError("Can only use .str accessor with string values!")
AttributeError: Can only use .str accessor with string values!获取2020-06-24这天的数据出错
经测试,可以正常获取 2020-06-24,建议升级 pandas 到最新版
from akshare.
Related Issues (20)
- AKShare 接口问题报告 HOT 1
- 基金相关接口,需要限制性代码 HOT 1
- AKShare 接口问题报告 HOT 2
- stock_hsgt_fund_flow_summary_em的日期能否更准确? HOT 1
- AKShare 接口问题报告 HOT 1
- stock_board_industry_index_ths 接口优化 HOT 3
- py2matlab issue about transfer python date to matlab char for py.akshare.stock_zh_a_hist HOT 1
- AKShare 接口问题报告index_value_hist_funddb HOT 1
- 开放式基金-历史数据-累计收益率走势数据获取不完整 HOT 2
- AKShare 接口问题报告 HOT 1
- 开放式基金-历史数据-累计收益率走势数据有误 HOT 1
- 建议:新增同花顺特有板块(非行业,非概念)的历史行情数据,如,"同花顺热股";以及隔夜海外中概股相关指数,如,"纳斯达克金龙**指数"“HXC” HOT 1
- fund_open_fund_info_em will crash while temp_df is empty HOT 1
- 坐等更新calendar.json啊 HOT 2
- 筹码分布计算 HOT 1
- get_receipt广期所问题 HOT 1
- AKshare Reits基金接口只展示第一页的20条数据 HOT 1
- AKShare stock_yjkb_em接口问题报告 HOT 1
- AKShare stock_zh_index_daily接口问题报告 HOT 1
- 希望加入港股的盈利预测数据 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.