Coder Social home page Coder Social logo

Comments (1)

albertandking avatar albertandking commented on May 9, 2024

================ 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)

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.