【发布时间】:2020-02-13 18:11:38
【问题描述】:
我有一个包含 Neo4j 密码查询的 excel 工作表,我想将 excel 文件加载到 python 中以运行查询,而不是手动运行它们。
有没有专门的库可以做到这一点?任何帮助将不胜感激
【问题讨论】:
标签: python neo4j jupyter-notebook jupyter
我有一个包含 Neo4j 密码查询的 excel 工作表,我想将 excel 文件加载到 python 中以运行查询,而不是手动运行它们。
有没有专门的库可以做到这一点?任何帮助将不胜感激
【问题讨论】:
标签: python neo4j jupyter-notebook jupyter
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
【讨论】: