bucky.viz.geoid
Creates lookup tables relating geographic administrative divisions for use in visualization tools.
read_geoid_from_graph(graph_file=None)
read_geoid_from_graph
Creates a dataframe relating geographic administration levels, e.g. admin2 values in a given admin1.
read_lookup(geofile, country='US')
read_lookup
Creates a dataframe relating geographic admin levels e.g. admin2 values in an admin1 based on a lookup table.
bucky.viz.geoid.
graph_file (str, or None) – Location of graph file. If None, uses most recently created graph in data/input_graphs/.
str
None
df – Dataframe with names and values for admin0, admin1, and admin2 levels.
pandas.DataFrame
geofile (str) – Location of lookup table
country (str, optional) – Country name
df – Dataframe with names and values for admin0, admin1, and admin2
bucky.viz
bucky.viz.map