Bubble Geospatial Plot

In [91]:
from verticapy import *
from verticapy.datasets import load_world
# Africa Dataset - the dataset is available
# at https://www.vertica.com/python/data/africa_education.csv
africa = read_csv("africa_education.csv", schema = "public")
africa_world = load_world()
africa_world = africa_world[africa_world["continent"] == "Africa"]
ax = africa_world["geometry"].geo_plot(color = "white",
                                       edgecolor='black',)

# displaying schools in Africa
africa.bubble(["lon", "lat"],
              size_bubble_col = "zmalocp",
              catcol = "country_long",
              ax = ax,)
Out[91]:
<AxesSubplot:xlabel='"lon"', ylabel='"lat"'>