mmc.Hierarchy.classification_parents()

Hierarchy.classification_parents(name)

Provides the names of a node’s parent and grandparent. This can be useful for subsetting. If no grandparent exists, parent will be returned twice.

Parameters:

name (str) – The name of the classification level to query

Return type:

A tuple of strings for the parent followed by the grandparent.