['province', 'department', 'country']
ancestors
ancestors(scale, ref=None)Coarser scales a unit of scale nests in, in breadth-first order.
Administrative scales follow parent; a scale whose units are unions of scale units (a grouping, such as statistical regions) is also an ancestor. The parent chain of each level comes before the groupings of that level, e.g. municipality -> [province, department, country].
Example
!pip install -q geo4bolivia
import geo4bolivia as geo
import plotly.express as px
print(geo.ancestors("municipality")) # province, department, country