Dataset attribute

A list containing the dataset’s parent collections, with the top level collection first.

Example

public = enigma.Public()
dataset = public.datasets.get('d8c29d0d-f283-4eb5-b4d4-460c9779d05d')
collections = dataset.ancestors
print(collections)
[<Collection 'Curated Collections'>, <Collection 'Inspections'>, <Collection 'Restaurant Inspections'>]