我想从elasticsearch创建数据框,但出现此错误:
raise ConnectionError("N/A", str(e), e)
elasticsearch.exceptions.ConnectionError: ConnectionError() caused by: MemoryError()
这是我的代码:
es = Elasticsearch('http://localhost:9200')
body={"query": {"match_all": {}}}
results = elasticsearch.helpers.scan(es, query=body, index="studentvle")
df = pd.DataFrame.from_dict([document['_source'] for document in results])
print(df.count())
有人可以帮助我解决这个问题吗?