Maps, GIS, Geospatial, Dataviz, Python.
spatial aggregation by counting the number of stops in each grid cell! Let’s try it at different hexagon resolutions. import geopandas as gpd # version: 0.13.1 import h3 # version: 3.7.3 from shapely.geometry import Polygon # version: 1.8.5.post1 import numpy as np # version: 1.22.4 # use this