#!/usr/bin/env python # coding: utf-8 # ## Read data from a Shapefile # # This example illustrates how to read data from a Shapefile using GeoPandas. # A shapefile is a complex format, compared to CSV or GeoJSON, so [GeoPandas offers more options](https://geopandas.org/io.html#reading-spatial-data) for reading it. # In[1]: from geopandas import read_file gdf = read_file('https://libs.cartocdn.com/cartoframes/samples/starbucks_brooklyn_geocoded.zip') gdf.head() # In[2]: from cartoframes.viz import Layer Layer(gdf)