Skip to content

Others

The aiod top-level module also provides some functions.

get(identifier, data_format='pandas')

Get any asset on AI-on-Demand by identifier.

Parameters:

Name Type Description Default
identifier str

The identifier of the asset, e.g., 'data_...'.

required
data_format Literal['pandas', 'json']

The format of the value to be returned.

'pandas'

Returns:

Type Description
dict | Series

All metadata of the asset.

Raises:

Type Description
KeyError

If the asset cannot be found.