Scatter Geospatial Plot¶
In [88]:
from verticapy import *
from verticapy.datasets import load_world
# Africa Education Dataset: 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.scatter(["lon", "lat"],
catcol = "country_long",
ax = ax,
with_others = False)
Out[88]: