def execute_opencypher(client: NeptuneClient, query: str) -> pd.DataFrame:
    'Return results of a openCypher traversal as pandas dataframe.\n\n    Parameters\n    ----------\n    client : NeptuneClient\n        instance of the neptune client to use\n    query : str\n        The openCypher query to execute\n\n    Returns\n    -------\n    Union[pandas.DataFrame, Iterator[pandas.DataFrame]]\n        Results as Pandas DataFrame\n\n    Examples\n    --------\n    Run an openCypher query\n\n    >>> import awswrangler as wr\n    >>> client = wr.neptune.connect(neptune_endpoint, neptune_port, iam_enabled=False)\n    >>> resp = wr.neptune.execute_opencypher(client, "MATCH (n) RETURN n LIMIT 1")\n    '
    resp = client.read_opencypher(query)
    df = pd.DataFrame.from_dict(resp)
    return df
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
-------
Union[pandas.DataFrame, Iterator[pandas.DataFrame]]
    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")
def execute_opencypher(client: NeptuneClient, query: str) -> pd.DataFrame:
    'Return results of a openCypher traversal as pandas dataframe.\n\n    Parameters\n    ----------\n    client : NeptuneClient\n        instance of the neptune client to use\n    query : str\n        The openCypher query to execute\n\n    Returns\n    -------\n    Union[pandas.DataFrame, Iterator[pandas.DataFrame]]\n        Results as Pandas DataFrame\n\n    Examples\n    --------\n    Run an openCypher query\n\n    >>> import awswrangler as wr\n    >>> client = wr.neptune.connect(neptune_endpoint, neptune_port, iam_enabled=False)\n    >>> resp = wr.neptune.execute_opencypher(client, "MATCH (n) RETURN n LIMIT 1")\n    '
    resp = client.read_opencypher(query)
    df = pd.DataFrame.from_dict(resp)
    return df