holoviews.core.traversal module#

Advanced utilities for traversing nesting/hierarchical Dimensioned objects either to inspect the structure of their declared dimensions or mutate the matching elements.

holoviews.core.traversal.hierarchical(keys)[source]#

Iterates over dimension values in keys, taking two sets of dimension values at a time to determine whether two consecutive dimensions have a one-to-many relationship. If they do a mapping between the first and second dimension values is returned. Returns a list of n-1 mappings, between consecutive dimensions.

holoviews.core.traversal.uniform(obj)[source]#

Finds all common dimension keys in the object including subsets of dimensions. If there are is no common subset of dimensions, None is returned.

holoviews.core.traversal.unique_dimkeys(obj, default_dim='Frame')[source]#

Finds all common dimension keys in the object including subsets of dimensions. If there are is no common subset of dimensions, None is returned.

Returns the list of dimensions followed by the list of unique keys.