Turn shapefiles into grids of evenly spaced squares for use in grid cartograms.
See an example useage here.
Install directly from the github release.
pip install https://github.com/dexmcmillan/cartogrammer/releases/download/v0.0.2/cartogrammer-0.0.2-py3-none-any.whl
Cartogrammer exposes one class, Cartogram. Implement like so:
import cartogrammer
cartogram = cartogrammer.Cartogram(shapefile_path, export)
print(cartogram.data)
file (str): The filepath to the shapefile (in .zip format) that you'd like to convert.
export (str): The filepath and name of the exported file.