import pandas as pd import geopandas as gpd import geoviews as gv gv.extension('matplotlib') gv.output(fig='svg', size=200)
geometries = gpd.read_file('../../assets/boundaries/boundaries.shp') referendum = pd.read_csv('../../assets/referendum.csv') gdf = gpd.GeoDataFrame(pd.merge(geometries, referendum))
gv.Polygons(gdf, vdims=['name', 'leaveVoteshare'], label='Brexit Referendum Vote').opts( color='leaveVoteshare', colorbar=True, padding=0.1)
This web page was generated from a Jupyter notebook and not all interactivity will work on this website. Right click to download and run locally for full Python-backed interactivity.