This example illustrates how to load data from a shapefile using GeoPandas. A shapefile is a complex format, compared to CSV or GeoJSON, so GeoPandas offers more options for reading it.
In [1]:
from geopandas import read_file
gdf = read_file('https://libs.cartocdn.com/cartoframes/files/sustainable_palm_oil_production_mills.zip')
gdf.head()
Out[1]:
In [2]:
from cartoframes.viz import Layer
Layer(gdf)
Out[2]: