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.

GDS client for Python returns an empty dataframe

I´'m running this example for Neo4j and Python in a Local environment,

https://neo4j.com/developer-blog/using-neo4j-graph-data-science-in-python-to-improve-machine-learnin...

so this instruction returns an empty dataframe :

time = gds.run_cypher("MATCH p=()-[r:P2P]->() RETURN r.transactionDateTime.year AS year, count(*) AS countOfTransactions ORDER BY year")

The same cypher query in Neo4j Browser returns data , there's any parameter gds.run_cypher that can be setting for timeout execution ? I suspect it have to be some abou execution time

python 3.10
graph data science 1.3
neo4j 4.4.6

Thanks in advance 

1 ACCEPTED SOLUTION

ponceortiz
Node Clone

Solved !!  It was obvious , since I'm getting authenticate  I have to provide de inicial database  where the data are, instead default database is logon 

🙈🐵
gds = GraphDataScience(host, auth=(user, password))
gds.set_database("my-database")

View solution in original post

1 REPLY 1

ponceortiz
Node Clone

Solved !!  It was obvious , since I'm getting authenticate  I have to provide de inicial database  where the data are, instead default database is logon 

🙈🐵
gds = GraphDataScience(host, auth=(user, password))
gds.set_database("my-database")