Engima

class pandas_datareader.enigma.EnigmaReader(dataset_id=None, api_key=None, retry_count=5, pause=0.75, session=None)

Collects current snapshot of Enigma data located at the specified data set ID and returns a pandas DataFrame.

Examples

Download current snapshot for the following Florida Inspections Dataset: https://public.enigma.com/datasets/bedaf052-5fcd-4758-8d27-048ce8746c6a

>>> import pandas_datareader as pdr
>>> df = pdr.get_data_enigma('bedaf052-5fcd-4758-8d27-048ce8746c6a')

In the event that ENIGMA_API_KEY does not exist in your env, the key can be supplied as the second argument or as the keyword argument api_key

>>> df = EnigmaReader(dataset_id='bedaf052-5fcd-4758-8d27-048ce8746c6a',
...                   api_key='INSERT_API_KEY').read()
close()

Close network session

get_current_snapshot_id(dataset_id)

Get ID of the most current snapshot of a dataset

get_dataset_metadata(dataset_id)

Get the Dataset Model of this EnigmaReader’s dataset https://docs.public.enigma.com/resources/dataset/index.html

get_snapshot_export(snapshot_id)

Return raw CSV of a dataset

params

Parameters to use in API calls

read()

Read data

url

API URL