Skip to content

Can't run load_df #30

@shangyuan232

Description

@shangyuan232

I tried to repeat the exact same code in your example for load_df, but it returns the following error.

Traceback (most recent call last): File "C:/Users/yuanyuan.shang/PycharmProjects/preqin-lp-recommender-import-ppr/scripts/test.py", line 9, in <module> db.load_df(df_original, "my_label") File "C:\Users\yuanyuan.shang\AppData\Local\Programs\Python\Python38\lib\site-packages\neointerface\neointerface.py", line 1481, in load_df res_chunk = self.query(cypher, cypher_dict) File "C:\Users\yuanyuan.shang\AppData\Local\Programs\Python\Python38\lib\site-packages\neointerface\neointerface.py", line 209, in query result = new_session.run(q, params) File "C:\Users\yuanyuan.shang\AppData\Local\Programs\Python\Python38\lib\site-packages\neo4j\work\simple.py", line 215, in run self._autoResult._run( File "C:\Users\yuanyuan.shang\AppData\Local\Programs\Python\Python38\lib\site-packages\neo4j\work\result.py", line 114, in _run self._attach() File "C:\Users\yuanyuan.shang\AppData\Local\Programs\Python\Python38\lib\site-packages\neo4j\work\result.py", line 203, in _attach self._connection.fetch_message() File "C:\Users\yuanyuan.shang\AppData\Local\Programs\Python\Python38\lib\site-packages\neo4j\io\_common.py", line 170, in inner func(*args, **kwargs) File "C:\Users\yuanyuan.shang\AppData\Local\Programs\Python\Python38\lib\site-packages\neo4j\io\_bolt4.py", line 309, in fetch_message response.on_failure(summary_metadata or {}) File "C:\Users\yuanyuan.shang\AppData\Local\Programs\Python\Python38\lib\site-packages\neo4j\io\_common.py", line 228, in on_failure raise Neo4jError.hydrate(**metadata) neo4j.exceptions.CypherSyntaxError: {code: Neo.ClientError.Statement.SyntaxError} {message: Unknown function 'apoc.map.removeKeys' (line 6, column 25 (offset: 246)) "SET x+=apoc.map.removeKeys((record), (exclude_keys))" ^}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions