cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Database query

cjsxz
Node Link

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

1 ACCEPTED SOLUTION

cjsxz
Node Link

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

View solution in original post

1 REPLY 1

cjsxz
Node Link

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