【发布时间】:2022-01-21 16:06:45
【问题描述】:
我有一个问题:
s = Search(using=client, index='myindex', doc_type='mytype')
s.query = Q('bool', must=[Q('match', BusinessUnit=bunit),
Q('range', **dicdate)])
res = s.execute()
返回 627033 行,我想将此字典转换为 627033 行的数据帧
【问题讨论】:
-
您能否提供有关 ElasticSearch 查询输出的更多信息?如果它只是字典,那么问题应该是将字典转换为数据框。对此有很多答案,例如stackoverflow.com/questions/34589332/…
-
实际上不是我要搜索的字典格式,但它总是只返回 10 个我想要的所有元素
标签: python pandas elasticsearch