verticapy.vDataColumn.geo_plot#
- vDataColumn.geo_plot(*args, **kwargs) PlottingBase | TableSample | Axes | mFigure | Highchart | Highstock | Figure #
Draws the Geospatial object.
Parameters#
- *args / **kwargs
Any optional parameter to pass to the geopandas plot function. For more information, see: https://geopandas.readthedocs.io/en/latest/ docs/reference/api/geopandas.GeoDataFrame.plot.html
Returns#
- ax
Axes
Examples#
Note
The below example is a very basic one. For other more detailed examples and customization options, please see Geospatial Plots
Let’s begin by importing the dataset module of VerticaPy. It provides a range of datasets for both training and exploring VerticaPy’s capabilities.
import verticapy.datasets as vpd
Let’s utilize the World dataset to demonstrate geospatial capabilities.
import verticapy.datasets as vpd world = vpd.load_world() # We filter to select only the African continent africa = world[world["continent"] == "Africa"]
Now we can draw the plot:
africa["geometry"].geo_plot(edgecolor = "black", color = "white") Out[2]: <Axes: >
See also
vDataColumn.
plot()
: Line Plot.