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 usequery (
str
) – The openCypher query to execute
- Return type:
DataFrame
- Returns:
Results as 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")