Coder Social home page Coder Social logo

Comments (2)

albertandking avatar albertandking commented on June 11, 2024
df = ak.stock_intraday_em(symbol=code)
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Python311\Lib\site-packages\akshare\stock\stock_intraday_em.py", line 136, in stock_intraday_em big_df.columns = ["时间", "成交价", "手数", "-", "买卖盘性质"] ^^^^^^^^^^^^^^ File "C:\Python311\Lib\site-packages\pandas\core\generic.py", line 6310, in setattr return object.setattr(self, name, value) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "properties.pyx", line 69, in pandas._libs.properties.AxisProperty.set File "C:\Python311\Lib\site-packages\pandas\core\generic.py", line 813, in _set_axis self._mgr.set_axis(axis, labels) File "C:\Python311\Lib\site-packages\pandas\core\internals\managers.py", line 238, in set_axis self._validate_set_axis(axis, new_labels) File "C:\Python311\Lib\site-packages\pandas\core\internals\base.py", line 98, in _validate_set_axis raise ValueError( ValueError: Length mismatch: Expected axis has 0 elements, new values have 5 elements

Process finished with exit code 1

9:00 ~9:15 为什么会有数据?

from akshare.

liyqxtu avatar liyqxtu commented on June 11, 2024

没数据接口也不应该报错呀,直接返回空也行呀

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.