Bubble Geospatial Plot

In [91]:
from verticapy import *
from verticapy.datasets import load_world

# Africa Dataset
africa = vDataFrame("africa_education")
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"'>