awswrangler.neptune.execute_gremlin

awswrangler.neptune.execute_gremlin(client: NeptuneClient, query: str) DataFrame

Return results of a Gremlin traversal as pandas dataframe.

Parameters
  • client (neptune.Client) – instance of the neptune client to use

  • traversal (str) – The gremlin traversal to execute

Returns

Results as Pandas DataFrame

Return type

Union[pandas.DataFrame, Iterator[pandas.DataFrame]]

Examples

Run a Gremlin Query

>>> import awswrangler as wr
    >>> client = wr.neptune.connect(neptune_endpoint, neptune_port, iam_enabled=False)
>>> df = wr.neptune.execute_gremlin(client, "g.V().limit(1)")