AlloViz.AlloViz.Elements.Nodes._check_label_or_level_ambiguity¶
- Nodes._check_label_or_level_ambiguity(key: Hashable, axis: int | Literal['index', 'columns', 'rows'] = 0) None ¶
Check whether key is ambiguous.
By ambiguous, we mean that it matches both a level of the input axis and a label of the other axis.
- Parameters:
- keyHashable
Label or level name.
- axisint, default 0
Axis that levels are associated with (0 for index, 1 for columns).
- Raises:
- ValueError: key is ambiguous