<jupyter_start><jupyter_text>Different Methods ```pythonfrom neo4j import GraphDatabasedriver = GraphDatabase.driver("bolt://%s:7687"%ip, auth=("neo4j", "123456"))sess = driver.session()``````Pythonfrom py2neo import Graphgraph = Graph("bolt://%s:7687"%ip, auth=("neo4j", "123456"))graph = Graph("bolt://%s:7687"%ip, password="<PASSWORD>")```<jupyter_code>from py2neo import Graph
graph = Graph("bolt://%s:7687"%ip, password="<PASSWORD>")
query = """
MATCH (n)
return COUNT(n) as nnode
"""

graph.run(query).to_data_frame()
from neo4j import GraphDatabase
import pandas as pd

driver = GraphDatabase.driver("bolt://%s:7687"%ip, auth=("neo4j", "123456"))
sess = driver.session()

cols = ["nnode"]

res = sess.run(query)
res2 = []
for r in res:
    res2.append([r[x] for x in range(len(cols))])
pd.DataFrame(res2, columns=cols)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.20116959064327486, 'fraction_numerical': 0.056140350877192984, 'mean_word_length': 7.310679611650485, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '406620', 'license': 'MIT', 'n_tokens_mistral': 352, 'n_tokens_neox': 320, 'n_words': 62, 'path': 'graph_neo4j/neo4j_connect.ipynb', 'repo_name': 'imredred/Data-Engineering-Toolbox', 'size': '847'}