Saves the snapshot to your local disk as a CSV file.

Note: Make sure you set your API key before calling this method, for example:

public = enigma.Public()
public.set_auth(apikey='YOUR-API-KEY')

Required arguments

Name Type Description
path string The full path and filename (see Example 1 below).

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 saves the current snapshot for the specified dataset as CSV file.

public = enigma.Public()
snapshot = public.datasets.get('d8c29d0d-f283-4eb5-b4d4-460c9779d05d').current_snapshot
snapshot.export_to('/tmp/export_to.csv')

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(
    '/tmp/export_to.csv',
    query_mode='advanced',
    geo_query='geo_location:40.744460,-73.987340;distance:100m', 
    query='food_type:asian'
)