问答交流

【代码报错】KeyError: 'indexes'

由bqnj0tvk创建,最终由small_q 被浏览 12 用户

rs2 = dai.DataSource("cn_stock_valuation")
rs2.read_bdb()

KeyError                                  Traceback (most recent call last)
Cell In[15], line 2
      1 rs2 = dai.DataSource("cn_stock_valuation")
----> 2 rs2.read_bdb()

File /var/app/enabled/dai/_telemetry.py:189, in wrapper(*args, **kwargs)

File /var/app/enabled/dai/_datasource.py:638, in read_bdb(self, as_type, partition_filter, columns, **kwargs)

File /var/app/enabled/dai/_dataformats/bdb.py:231, in read(self, as_type, partition_filter, columns, **kwargs)

KeyError: 'indexes
以上这么简单的两条语句就报错,请教老师,问题在哪里?

\

标签

Python
评论
  • 该表DataSource view目前还不能读取。用dai.DataSource("cn_stock_valuation_v5").read()可以或者用dai.query()
{link}