Using Lets-Plot with GeoPandas to Create Maps

GeoPandas GeoDataFrame is a tabular data structure that contains a set of shapes (geometry) per each observation.

GeoDataFrame extends pandas DataFrame and as such, aside from the geometry, can contain other data.

GeoPandas has three basic classes of geometric objects (shapes):

  • Points / Multi-Points
  • Lines / Multi-Lines
  • Polygons / Multi-Polygons

All GeoPandas shapes are "undersood" by Lets-Plot and can be plotted using various geometry layers, depending on the type of the shape.


  • geom_point, geom_text with Points / Multi-Points
  • geom_path with Lines / Multi-Lines
  • geom_polygon, geom_map with Polygons / Multi-Polygons
  • geom_rect when used with Polygon shapes will display corresponding bounding boxes
In [1]:
import geopandas as gpd
from lets_plot import *