簡體   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