Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
06-09-2021 12:40 AM
Following the Citation network example in the book Neo4j_Graph_Algorithms.. The dataset has been loaded to the newly created database ml1 : see the screenshot
Then try to run the code from the terminal
graph = Graph("bolt://localhost:7687", auth=("neo4j", "neo"))
query = """
MATCH (article:Article)
RETURN article.year AS year, count(*) AS count ORDER BY year
"""
by_year = graph.run(query).to_data_frame()
print(by_year.head())
The error occur (what it says is that it couldn't find the corresponding column)
Did I do something wrong when connecting to the database? (It worked fine for previous toy examples.)
Solved! Go to Solution.
06-10-2021 02:01 AM
06-10-2021 02:01 AM
I should pass the parameter 'name' to Graph(...).
All the sessions of the conference are now available online