municipality department
scale_of
scale_of(geo_id, ref=None)The scale a geo ID belongs to, from the ID patterns (e.g. a municipality ID -> "municipality").
Example
!pip install -q geo4bolivia
import geo4bolivia as geo
import plotly.express as px
print(geo.scale_of("BO-04-17-04"), geo.scale_of("BO-04"))