Scatter Geospatial Plot

In [88]:
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.scatter(["lon", "lat"],
               catcol = "country_long",
               ax = ax,
               with_others = False)
Out[88]:
<AxesSubplot:xlabel='"lon"', ylabel='"lat"'>