繁体   English   中英

如何阅读集合中的完整文档

[英]How can I read the complete documents inside a collection

我正在使用库python-arango 是否可以选择在Collection中阅读完整的文档,例如students 我的目的是能看到一个dataframe里面的完整文件,eg import pandas as pd; df=pd.json_normalize(result['...']['...']) import pandas as pd; df=pd.json_normalize(result['...']['...'])

from arango import ArangoClient

# Initialize the ArangoDB client.
client = ArangoClient()

# Connect to database as  user.
db = client.db(<db>, username=<username>, password=<password>)

print(db.collections())
students = db.collection('students')
print(students)

您可以将其转换为列表:

students = list(db.collection('students'))

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM