【问题标题】:Run Neo4j queries stored in excel workbook in python (Jupyter)在 python (Jupyter) 中运行存储在 excel 工作簿中的 Neo4j 查询
【发布时间】:2020-02-13 18:11:38
【问题描述】:

我有一个包含 Neo4j 密码查询的 excel 工作表,我想将 excel 文件加载到 python 中以运行查询,而不是手动运行它们。

有没有专门的库可以做到这一点?任何帮助将不胜感激

【问题讨论】:

    标签: python neo4j jupyter-notebook jupyter


    【解决方案1】:

    neo4j 库具有执行此操作的功能。

    from neo4j import GraphDatabase
    graphdb=GraphDatabase.driver(uri="$uri",auth=("$user","$password"))
    session=graphdb.session()
    session.run("Your query goes here")
    graphdb.close()
    

    这只会运行命令,取决于你将如何处理你得到的信息。

    在此处了解有关此主题的更多信息:
    https://neo4j.com/developer/python/
    https://neo4j.com/docs/api/python-driver/current/transactions.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-27
      • 2018-11-10
      • 2015-06-02
      • 1970-01-01
      相关资源
      最近更新 更多