Returns the snapshot as a pandas DataFrame.

Note: The SDK first downloads the snapshot as a CSV file using the API’s GET /export/id endpoint, so your API key is required (see apiclient.set_auth( )).

Required arguments

None

Optional keyword arguments

See snapshot.get( ) for a list of supported arguments. row_limit, row_offset, row_sort, and stats are ignored.

Example

Example 1 exports the specified dataset as a DataFrame.

public = enigma.Public()
dataset = public.datasets.get('d8c29d0d-f283-4eb5-b4d4-460c9779d05d')
df = dataset.current_snapshot.export_dataframe()

Example 2 demonstrates the use of arguments to export only specific rows.

dataset = public.datasets.get('d8c29d0d-f283-4eb5-b4d4-460c9779d05d')
df = dataset.current_snapshot.export_dataframe(
    query_mode='advanced',
    geo_query='geo_location:40.744460,-73.987340;distance:100m', 
    query='food_type:asian'
)