Database query

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.)

I should pass the parameter 'name' to Graph(...).