awswrangler.neptune.execute_opencypher¶
- awswrangler.neptune.execute_opencypher(client: NeptuneClient, query: str) DataFrame ¶
Return results of a openCypher traversal as pandas dataframe.
- Parameters
client (NeptuneClient) – instance of the neptune client to use
query (str) – The openCypher query to execute
- Returns
Results as Pandas DataFrame
- Return type
Union[pandas.DataFrame, Iterator[pandas.DataFrame]]
Examples
Run an openCypher query
>>> import awswrangler as wr >>> client = wr.neptune.connect(neptune_endpoint, neptune_port, iam_enabled=False) >>> resp = wr.neptune.execute_opencypher(client, "MATCH (n) RETURN n LIMIT 1")