Using GDS 2.0 and the Python client and trying to do something pretty simple.
I have run an algorithm and streamed it to a data frame all good. Now I want to add a column to that data frame with an identifier from the node properties since at the moment all I have are node Ids.
My goal is to retrieve the "num" property from the node and I amusing gds.util.asNode and passing the the previously generated nodeId held in the data frame.
LCC_sub['pat']=gds.util.asNode(LCC_sub['nodeId'])["num"]
This does not work and is showing a neo4j cypher error.
CypherSyntaxError: {code: Neo.ClientError.Statement.SyntaxError} {message: Invalid input '2': expected whitespace, comment, '.', node labels or rel types, '[', '^', '*', '/', '%', '+', '-', "=~", IN, STARTS, ENDS, CONTAINS, IS, '=', "<>", "!=", '<', '>', "<=", ">=", AND, XOR, OR, ',' or ')' (line 1, column 30 (offset: 29))
"RETURN gds.util.asNode(0 262921"
^}
Looking at the details the 0 is the index and then 262921 is the actual nodeId I want the property value on. Why is the index of the dataframe being passed to function? I have tested passing LCC_nodeId by itself to a new column without issue, i.e. there was no index value along with the nodeId.
Any clues, solutions, workarounds?
Andy