【问题标题】:How can I read the complete documents inside a collection如何阅读集合中的完整文档
【发布时间】:2022-06-13 16:18:29
【问题描述】:

我正在使用库 python-arango。是否可以选择在 Collection 中阅读,例如students 完整的文件? 我的目标是我可以在数据框中看到完整的文档,例如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)

【问题讨论】:

    标签: python arangodb python-arango


    【解决方案1】:

    你可以把它转换成一个列表来阅读 学生=列表(db.collection('学生'))

    【讨论】:

      猜你喜欢
      • 2021-02-13
      • 1970-01-01
      • 2019-06-26
      • 2019-09-14
      • 1970-01-01
      • 2013-12-24
      • 2011-01-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多