In [1]:
import pandas as pd
import py2neo

graph = py2neo.Graph()
graph


Out[1]:
<Graph uri='http://localhost:7474/db/data/'>

In [9]:
query = """
MATCH (c:Class)-[:DECLARES]->(m:Method)-[i:INVOKES]->(m)
RETURN c.name, i.lineNumber, m.name
"""
pd.DataFrame(graph.data(query))


Out[9]:
c.name i.lineNumber m.name
0 RecursiveClass 9 recursive
1 RecursiveDbCallsExample 17 loadParent